Fling Engine
0.00.1
Fling Engine is a game engine written in Vulkan
|
Base class that represents a window to the Fling Engine. More...
#include <FlingWindow.h>
Inherits Fling::NonCopyable.
Inherited by Fling::DesktopWindow.
Public Member Functions | |
virtual | ~FlingWindow ()=default |
virtual void | Update ()=0 |
Per frame update of this window. More... | |
virtual void | CreateSurface (void *t_GraphicsInstance, void *t_SurfData)=0 |
Create the rendering surface for this window. More... | |
virtual void | RecreateSwapChain ()=0 |
Any work that this window needs to do for swap chain recreation. More... | |
virtual UINT32 | GetWidth () const =0 |
The current width of this window. More... | |
virtual UINT32 | GetHeight () const =0 |
The current height of this window. More... | |
virtual float | GetAspectRatio () const =0 |
The current aspect ratio of this windows. More... | |
virtual int | ShouldClose ()=0 |
Int representing if this window should close or not. More... | |
virtual bool | IsMinimized () const =0 |
Check if this window is currently minimized. More... | |
![]() | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=default | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=default |
Static Public Member Functions | |
static FlingWindow * | Create (const WindowProps &t_Props) |
Create a window with the given data. More... | |
Additional Inherited Members | |
![]() | |
NonCopyable ()=default | |
virtual | ~NonCopyable ()=default |
|
virtualdefault |
|
static |
Create a window with the given data.
Implemented per platform
|
pure virtual |
Create the rendering surface for this window.
Implemented in Fling::DesktopWindow.
|
pure virtual |
The current aspect ratio of this windows.
Implemented in Fling::DesktopWindow.
|
pure virtual |
The current height of this window.
Implemented in Fling::DesktopWindow.
|
pure virtual |
The current width of this window.
Implemented in Fling::DesktopWindow.
|
pure virtual |
Check if this window is currently minimized.
Implemented in Fling::DesktopWindow.
|
pure virtual |
Any work that this window needs to do for swap chain recreation.
Implemented in Fling::DesktopWindow.
|
pure virtual |
Int representing if this window should close or not.
Implemented in Fling::DesktopWindow.
|
pure virtual |
Per frame update of this window.
Implemented in Fling::DesktopWindow.