Render-surface host for the window module (provided by graphics). 更多...
#include <WindowSurfaceHost.h>
Public 成员函数 | |
| virtual | ~IWindowSurfaceHost ()=default |
| virtual void | initWithWindow (void *nativeWindow)=0 |
| Bind the render surface to a freshly created native window. | |
| virtual void | setViewportSize (int logicalWidth, int logicalHeight, int pixelWidth, int pixelHeight)=0 |
| Logical and pixel viewport after creation or resize. | |
| virtual void | onNativeWindowDestroyed ()=0 |
| Native window is about to be destroyed; drop the surface/swapchain. | |
| virtual void | setActive (bool active)=0 |
| Pause/resume presenting (mobile background/foreground). | |
| virtual void | requestSurfaceRecreate ()=0 |
| Rebuild the render surface on the next frame (mobile foreground). | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "IWindowSurfaceHost" |
详细描述
Render-surface host for the window module (provided by graphics).
在文件 WindowSurfaceHost.h 第 27 行定义.
构造及析构函数说明
◆ ~IWindowSurfaceHost()
|
virtualdefault |
成员函数说明
◆ initWithWindow()
|
pure virtual |
Bind the render surface to a freshly created native window.
在 eve::graphics::vulkan::Graphics, eve::graphics::webgpu::Graphics , 以及 eve::graphics::Graphics 内被实现.
◆ onNativeWindowDestroyed()
|
pure virtual |
Native window is about to be destroyed; drop the surface/swapchain.
在 eve::graphics::Graphics , 以及 eve::graphics::vulkan::Graphics 内被实现.
◆ requestSurfaceRecreate()
|
pure virtual |
Rebuild the render surface on the next frame (mobile foreground).
在 eve::graphics::Graphics, eve::graphics::vulkan::Graphics , 以及 eve::graphics::webgpu::Graphics 内被实现.
◆ setActive()
|
pure virtual |
Pause/resume presenting (mobile background/foreground).
在 eve::graphics::Graphics 内被实现.
◆ setViewportSize()
|
pure virtual |
Logical and pixel viewport after creation or resize.
在 eve::graphics::vulkan::Graphics, eve::graphics::webgpu::Graphics , 以及 eve::graphics::Graphics 内被实现.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 WindowSurfaceHost.h 第 29 行定义.
该类的文档由以下文件生成:
- src/engine/common/WindowSurfaceHost.h