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

Manages the ImGui user interface system, handling GUI object registration and rendering. Implements a singleton pattern to ensure a single instance. Подробнее...

#include <ImGuiModule.h>

Открытые члены

 ~ImGuiModule ()=default
 Destructor for the ImGuiModule.
 
void renderUI ()
 Renders the ImGui user interface. Calls the render function of all registered GUI objects.
 
void addObject (GUIObject *object)
 Registers a GUI object to be rendered.
 
void removeObject (uint32_t id)
 Removes a GUI object from the list using its unique ID.
 

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

static ImGuiModulegetInstance ()
 Retrieves the singleton instance of the ImGuiModule.
 

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

Manages the ImGui user interface system, handling GUI object registration and rendering. Implements a singleton pattern to ensure a single instance.

Методы

◆ addObject()

void ImGuiModule::addObject ( GUIObject * object)
inline

Registers a GUI object to be rendered.

Аргументы
objectPointer to the GUI object to be added.

◆ getInstance()

static ImGuiModule & ImGuiModule::getInstance ( )
inlinestatic

Retrieves the singleton instance of the ImGuiModule.

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

◆ removeObject()

void ImGuiModule::removeObject ( uint32_t id)
inline

Removes a GUI object from the list using its unique ID.

Аргументы
idThe unique ID of the GUI object to remove.

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