Windows specific implementation of the Window class.
More...
#include <WindowsWindow.h>
Windows specific implementation of the Window class.
- Since
- Karma 1.0.0
◆ WindowsWindow()
| Karma::WindowsWindow::WindowsWindow |
( |
const WindowProps & | props | ) |
|
A constructor.
- Parameters
-
| props | The properties of the window to be created |
- See also
- WindowsWindow::Init
- Since
- Karma 1.0.0
◆ ~WindowsWindow()
| Karma::WindowsWindow::~WindowsWindow |
( |
| ) |
|
|
virtual |
A destructor.
- See also
- WindowsWindow::ShutDown()
- Since
- Karma 1.0.0
◆ GetHandle()
| GLFWwindow * Karma::WindowsWindow::GetHandle |
( |
| ) |
const |
|
inline |
Getter for the GLFW Window handle.
- Returns
- GLFWwindow* The GLFW window handle
- Since
- Karma 1.0.0
◆ GetHeight()
| unsigned int Karma::WindowsWindow::GetHeight |
( |
| ) |
const |
|
inlineoverridevirtual |
Getter for the Window height.
- Returns
- unsigned int The height of the window
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ GetNativeWindow()
| virtual void * Karma::WindowsWindow::GetNativeWindow |
( |
| ) |
const |
|
inlineoverridevirtual |
Getter for the native Window handle.
- Returns
- void* The native window handle
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ GetWidth()
| unsigned int Karma::WindowsWindow::GetWidth |
( |
| ) |
const |
|
inlineoverridevirtual |
Getter for the Window width.
- Returns
- unsigned int The width of the window
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ IsVSync()
| bool Karma::WindowsWindow::IsVSync |
( |
| ) |
const |
|
overridevirtual |
Getter for VSync status.
- Returns
- bool True if VSync is enabled, false otherwise
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ OnResize()
Windows specific implementation of WindowResize event.
- Parameters
-
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ OnUpdate()
| void Karma::WindowsWindow::OnUpdate |
( |
| ) |
|
|
overridevirtual |
◆ SetEventCallback()
| void Karma::WindowsWindow::SetEventCallback |
( |
const EventCallbackFn & | callback | ) |
|
|
inlineoverridevirtual |
◆ SetVSync()
| void Karma::WindowsWindow::SetVSync |
( |
bool | enabled | ) |
|
|
overridevirtual |
Sets VSync on or off.
- Parameters
-
| enabled | True to enable VSync, false to disable |
- Since
- Karma 1.0.0
Implements Karma::Window.
The documentation for this class was generated from the following files:
- Karma/src/Platform/Windows/WindowsWindow.h
- Karma/src/Platform/Windows/WindowsWindow.cpp