载入中...
搜索中...
未找到
eve::IWindowSurfaceHost类 参考abstract

Render-surface host for the window module (provided by graphics). 更多...

#include <WindowSurfaceHost.h>

类 eve::IWindowSurfaceHost 继承关系图:
eve::graphics::Graphics eve::graphics::vulkan::Graphics eve::graphics::webgpu::Graphics

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.h27 行定义.

构造及析构函数说明

◆ ~IWindowSurfaceHost()

virtual eve::IWindowSurfaceHost::~IWindowSurfaceHost ( )
virtualdefault

成员函数说明

◆ initWithWindow()

virtual void eve::IWindowSurfaceHost::initWithWindow ( void *  nativeWindow)
pure virtual

Bind the render surface to a freshly created native window.

eve::graphics::vulkan::Graphics, eve::graphics::webgpu::Graphics , 以及 eve::graphics::Graphics 内被实现.

◆ onNativeWindowDestroyed()

virtual void eve::IWindowSurfaceHost::onNativeWindowDestroyed ( )
pure virtual

Native window is about to be destroyed; drop the surface/swapchain.

eve::graphics::Graphics , 以及 eve::graphics::vulkan::Graphics 内被实现.

◆ requestSurfaceRecreate()

virtual void eve::IWindowSurfaceHost::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()

virtual void eve::IWindowSurfaceHost::setActive ( bool  active)
pure virtual

Pause/resume presenting (mobile background/foreground).

eve::graphics::Graphics 内被实现.

◆ setViewportSize()

virtual void eve::IWindowSurfaceHost::setViewportSize ( int  logicalWidth,
int  logicalHeight,
int  pixelWidth,
int  pixelHeight 
)
pure virtual

Logical and pixel viewport after creation or resize.

eve::graphics::vulkan::Graphics, eve::graphics::webgpu::Graphics , 以及 eve::graphics::Graphics 内被实现.

类成员变量说明

◆ capabilityName

constexpr const char* eve::IWindowSurfaceHost::capabilityName = "IWindowSurfaceHost"
staticconstexpr

在文件 WindowSurfaceHost.h29 行定义.


该类的文档由以下文件生成: