Base class that represents a window to the Fling Engine using GLFW.
More...
#include <DesktopWindow.h>
Inherits Fling::FlingWindow.
Base class that represents a window to the Fling Engine using GLFW.
◆ DesktopWindow()
Fling::DesktopWindow::DesktopWindow |
( |
const WindowProps & |
t_Props | ) |
|
◆ ~DesktopWindow()
Fling::DesktopWindow::~DesktopWindow |
( |
| ) |
|
|
virtual |
◆ CreateSurface()
void Fling::DesktopWindow::CreateSurface |
( |
void * |
t_GraphicsInstance, |
|
|
void * |
t_SurfData |
|
) |
| |
|
overridevirtual |
◆ FrameBufferResizeCallback()
void Fling::DesktopWindow::FrameBufferResizeCallback |
( |
GLFWwindow * |
t_Window, |
|
|
int |
t_Width, |
|
|
int |
t_Height |
|
) |
| |
|
staticprivate |
◆ GetAspectRatio()
float Fling::DesktopWindow::GetAspectRatio |
( |
| ) |
const |
|
overridevirtual |
◆ GetGlfwWindow()
GLFWwindow* Fling::DesktopWindow::GetGlfwWindow |
( |
| ) |
const |
|
inline |
get the current GLFW window
◆ GetHeight()
UINT32 Fling::DesktopWindow::GetHeight |
( |
| ) |
const |
|
overridevirtual |
◆ GetWidth()
UINT32 Fling::DesktopWindow::GetWidth |
( |
| ) |
const |
|
overridevirtual |
◆ IsMinimized()
bool Fling::DesktopWindow::IsMinimized |
( |
| ) |
const |
|
overridevirtual |
◆ RecreateSwapChain()
void Fling::DesktopWindow::RecreateSwapChain |
( |
| ) |
|
|
overridevirtual |
Recreate the swap chain based on current window size with GLFW.
Implements Fling::FlingWindow.
◆ ShouldClose()
int Fling::DesktopWindow::ShouldClose |
( |
| ) |
|
|
overridevirtual |
Check if this window should close.
- Returns
- 0 if the window should not close, non-zero if it should.
Implements Fling::FlingWindow.
◆ Update()
void Fling::DesktopWindow::Update |
( |
| ) |
|
|
overridevirtual |
◆ m_Window
GLFWwindow* Fling::DesktopWindow::m_Window = nullptr |
|
private |
The documentation for this class was generated from the following files: