Singleton module responsible for managing the application's window lifecycle.
Подробнее...
#include <WindowModule.h>
|
| void | startUp (int width, int height, const char *title) |
| | Initializes the window module and creates a new window.
|
| |
|
void | shutDown () |
| | Shuts down the window module and destroys the window.
|
| |
| Window * | getWindow () |
| | Retrieves a pointer to the managed window.
|
| |
Singleton module responsible for managing the application's window lifecycle.
◆ getInstance()
◆ getWindow()
| Window * WindowModule::getWindow |
( |
| ) |
|
|
inline |
Retrieves a pointer to the managed window.
- Возвращает
- Pointer to the active Window instance.
- Исключения
-
| std::runtime_error | Throws an assertion error if the window is not initialized. |
◆ startUp()
| void WindowModule::startUp |
( |
int | width, |
|
|
int | height, |
|
|
const char * | title ) |
|
inline |
Initializes the window module and creates a new window.
- Аргументы
-
| width | The width of the window in pixels. |
| height | The height of the window in pixels. |
| title | The title of the window. |
- Исключения
-
| std::runtime_error | Thrown if window creation fails. |
Объявления и описания членов класса находятся в файле: