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.
|
|
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()
◆ 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.
- Аргументы
-
graphicsAPI | The graphics API to set. |
◆ setImGuiEnabled()
void RenderConfig::setImGuiEnabled |
( |
bool | state | ) |
|
|
inline |
Enables or disables ImGui rendering.
- Аргументы
-
state | True to enable ImGui, false to disable. |
◆ setMaxFramesInFlight()
void RenderConfig::setMaxFramesInFlight |
( |
const uint32_t | framesInFlight | ) |
|
|
inline |
Sets the maximum number of frames in flight.
- Аргументы
-
framesInFlight | The new maximum frame count. |
Объявления и описания членов класса находятся в файле: