FCT
|
#include <Window.h>
Public 成员函数 | |
RenderTargetType | getType () const override |
Window () | |
virtual | ~Window () |
void | pos (int x, int y) |
void | size (int w, int h) |
virtual void | createPlatform ()=0 |
void | create (WindowCreateFlags flags=WindowCreateFlag::defaultConfig) |
void | bind (Context *ctx) override |
virtual bool | isRunning () const =0 |
virtual void | swapBuffers ()=0 |
virtual int | getWidth ()=0 |
virtual int | getHeight ()=0 |
virtual void | setCursorPos (int x, int y)=0 |
void | registerHandler (EventHandler *handler) |
void | unregisterHandler (EventHandler *handler) |
virtual Vec2 | getCursorPos () const =0 |
void | clearHandler () |
Image * | targetImage () const |
CallBackEventHandler * | getCallBack () const |
ImageRenderTarget * | getCurrentTarget () |
void | addRenderFinshSemaphore (RHI::Semaphore *semaphore) |
void | clearRenderFinshSemaphores () |
void | setPresentFinshSemaphore (RHI::Semaphore *semaphore) |
void | addRenderFinshFence (RHI::Fence *fence) |
void | clearRenderFinshFences () |
void | initRender () |
void | title (const std::string &title) |
void | enableDepthBuffer (Format format) |
uint32_t | getSwapchainImageCount () const |
Samples | getSwapchainSampleCount () const |
RHI::Swapchain * | swapchain () const |
template<typename... Components> | |
void | addModule (Components &&... components) |
template<typename Component> | |
auto | getModule () const -> std::conditional_t< std::is_same_v< Component, WindowModule::Swapchain >, RHI::Swapchain *, std::conditional_t< std::is_same_v< Component, WindowModule::AutoViewport >, AutoViewport *, std::conditional_t< std::is_same_v< Component, WindowModule::DepthStencil >, Format, void * > > > |
void | addRef () |
void | release () |
size_t | count () |
operator bool () const | |
virtual Image * | getImage () const =0 |
Protected 成员函数 | |
virtual SwapchainTargetWrapper * | getSwapchainTarget (Context *ctx)=0 |
virtual void | deleteThis () |
Protected 属性 | |
WindowBehavior * | m_behavior |
AutoViewport * | m_autoViewport |
CallBackEventHandler * | m_callbackHandler |
std::vector< EventHandler * > | m_handlers |
int | m_x |
int | m_y |
int | m_width |
int | m_height |
std::string | m_title |
RHI::Swapchain * | m_swapchain |
bool | m_needEnableDepthBuffer |
Format | m_depthBufferFormat |
Context * | m_ctx |
EventDispatcher< EventSystemConfig::IdentifierTriggerOnly > | m_delayModuleCreate |
std::atomic< size_t > | m_refCount |
Private 成员函数 | |
void | addSingleComponent (const WindowModule::Swapchain &component) |
void | addSingleComponent (const WindowModule::AutoViewport &component) |
void | addSingleComponent (const WindowModule::DepthStencil &component) |
友元 | |
class | SetParamWindowBehavior |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
overridevirtual |
void FCT::Window::clearHandler | ( | ) |
|
inlineinherited |
void FCT::Window::create | ( | WindowCreateFlags | flags = WindowCreateFlag::defaultConfig | ) |
|
pure virtual |
|
inlineprotectedvirtualinherited |
|
inline |
|
inline |
|
pure virtual |
在 FCT::GLFW_Window 内被实现.
|
pure virtual |
|
pure virtualinherited |
|
inline |
|
protectedpure virtual |
|
inlineoverridevirtual |
实现了 FCT::IRenderTarget.
|
pure virtual |
void FCT::Window::initRender | ( | ) |
在文件 Window.cpp 第 26 行定义.
|
pure virtual |
在 FCT::Android_Window , 以及 FCT::GLFW_Window 内被实现.
|
inlineinherited |
在文件 RefCount.h 第 22 行定义.
void FCT::Window::registerHandler | ( | EventHandler * | handler | ) |
|
inlineinherited |
|
pure virtual |
在 FCT::Android_Window , 以及 FCT::GLFW_Window 内被实现.
|
inline |
|
pure virtual |
在 FCT::Android_Window , 以及 FCT::GLFW_Window 内被实现.
|
inline |
|
inline |
void FCT::Window::unregisterHandler | ( | EventHandler * | handler | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
在文件 RefCount.h 第 30 行定义.
|
protected |