LampyEngine
 
Загрузка...
Поиск...
Не найдено
Класс WindowModule

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.
 
WindowgetWindow ()
 Retrieves a pointer to the managed window.
 

Открытые статические члены

static WindowModulegetInstance ()
 Retrieves the singleton instance of the WindowModule.
 

Подробное описание

Singleton module responsible for managing the application's window lifecycle.

Методы

◆ getInstance()

static WindowModule & WindowModule::getInstance ( )
inlinestatic

Retrieves the singleton instance of the WindowModule.

Возвращает
Reference to the WindowModule instance.

◆ getWindow()

Window * WindowModule::getWindow ( )
inline

Retrieves a pointer to the managed window.

Возвращает
Pointer to the active Window instance.
Исключения
std::runtime_errorThrows 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.

Аргументы
widthThe width of the window in pixels.
heightThe height of the window in pixels.
titleThe title of the window.
Исключения
std::runtime_errorThrown if window creation fails.

Объявления и описания членов класса находятся в файле: