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

Singleton class that manages rendering configuration settings. Подробнее...

#include <RenderConfig.h>

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

uint32_t getMaxFramesInFlight () const
 Gets the maximum number of frames that can be in flight simultaneously.
 
GraphicsAPI getGraphicsAPI () const
 Gets the currently selected graphics API.
 
bool getImGuiEnabled () const
 Checks whether ImGui rendering is enabled.
 
void setMaxFramesInFlight (const uint32_t framesInFlight)
 Sets the maximum number of frames in flight.
 
void setGraphicsAPI (GraphicsAPI graphicsAPI)
 Sets the graphics API to be used.
 
void setImGuiEnabled (bool state)
 Enables or disables ImGui rendering.
 

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

static RenderConfiggetInstance ()
 Retrieves the singleton instance of the RenderConfig class.
 

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

Singleton class that manages rendering configuration settings.

Методы

◆ getGraphicsAPI()

GraphicsAPI RenderConfig::getGraphicsAPI ( ) const
inline

Gets the currently selected graphics API.

Возвращает
Enum value representing the graphics API.

◆ getImGuiEnabled()

bool RenderConfig::getImGuiEnabled ( ) const
inline

Checks whether ImGui rendering is enabled.

Возвращает
True if ImGui is enabled, otherwise false.

◆ getInstance()

static RenderConfig & RenderConfig::getInstance ( )
inlinestatic

Retrieves the singleton instance of the RenderConfig class.

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

◆ getMaxFramesInFlight()

uint32_t RenderConfig::getMaxFramesInFlight ( ) const
inline

Gets the maximum number of frames that can be in flight simultaneously.

Возвращает
Maximum frames in flight.

◆ setGraphicsAPI()

void RenderConfig::setGraphicsAPI ( GraphicsAPI graphicsAPI)
inline

Sets the graphics API to be used.

Аргументы
graphicsAPIThe graphics API to set.

◆ setImGuiEnabled()

void RenderConfig::setImGuiEnabled ( bool state)
inline

Enables or disables ImGui rendering.

Аргументы
stateTrue to enable ImGui, false to disable.

◆ setMaxFramesInFlight()

void RenderConfig::setMaxFramesInFlight ( const uint32_t framesInFlight)
inline

Sets the maximum number of frames in flight.

Аргументы
framesInFlightThe new maximum frame count.

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