Khaotic Engine Reborn
|
Public Member Functions | |
imguiManager () | |
bool | Initialize (HWND hwnd, ID3D11Device *device, ID3D11DeviceContext *deviceContext) |
void | Shutdown () |
void | Render () |
void | NewFrame () |
void | SetupDockspace () |
void | WidgetSpeedSlider (float *speed) |
void | WidgetButton () |
void | WidgetFPS () |
void | WidgetAddObject () |
void | WidgetObjectWindow () |
void | WidgetTerrainWindow () |
void | WidgetLightWindow () |
void | WidgetEngineSettingsWindow () |
void | WidgetRenderWindow (ImVec2 availableSize) |
void | WidgetLogWindow () |
void | WidgetRenderStats () |
bool | ImGuiWidgetRenderer () |
void | SetWindowSize (ImVec2 size) |
ImVec2 | GetWindowSize () const |
void | SetApp (std::shared_ptr< application_class > app) |
Public Attributes | |
bool | m_EnableCelShading |
Definition at line 33 of file imguiManager.h.
imguiManager::imguiManager | ( | ) |
Constructor for imguiManager class. Initializes the ImGui manager with default values.
Definition at line 7 of file imguiManager.cpp.
imguiManager::~imguiManager | ( | ) |
Definition at line 46 of file imguiManager.cpp.
|
inline |
Get the current window size.
Definition at line 136 of file imguiManager.h.
bool imguiManager::ImGuiWidgetRenderer | ( | ) |
Function to render the ImGui widgets. This function use the struct widget_entry to render the widgets that are registered.
Definition at line 744 of file imguiManager.cpp.
bool imguiManager::Initialize | ( | HWND | hwnd, |
ID3D11Device * | device, | ||
ID3D11DeviceContext * | deviceContext ) |
Initializes the ImGui manager.
hwnd | Handle to the window where ImGui will be rendered. |
device | Pointer to the Direct3D 11 device. |
deviceContext | Pointer to the Direct3D 11 device context. |
Definition at line 50 of file imguiManager.cpp.
void imguiManager::NewFrame | ( | ) |
Starts a new ImGui frame.
Definition at line 213 of file imguiManager.cpp.
void imguiManager::Render | ( | ) |
Renders the ImGui interface.
Definition at line 200 of file imguiManager.cpp.
|
inline |
Set the application class pointer for the ImGui manager.
app |
Definition at line 142 of file imguiManager.h.
void imguiManager::SetupDockspace | ( | ) |
Sets up the ImGui dockspace. This function creates a dockspace for the ImGui interface.
Definition at line 220 of file imguiManager.cpp.
|
inline |
set the Old scene window size.
size |
Definition at line 131 of file imguiManager.h.
void imguiManager::Shutdown | ( | ) |
Shuts down the ImGui manager.
Definition at line 191 of file imguiManager.cpp.
void imguiManager::WidgetAddObject | ( | ) |
Create a widget to add a button wich will add an object to the scene.
Definition at line 296 of file imguiManager.cpp.
void imguiManager::WidgetButton | ( | ) |
Creates a button widget.
Definition at line 286 of file imguiManager.cpp.
void imguiManager::WidgetEngineSettingsWindow | ( | ) |
Create a window to display the Engine settings.
Definition at line 841 of file imguiManager.cpp.
void imguiManager::WidgetFPS | ( | ) |
Shows the FPS in a widget.
void imguiManager::WidgetLightWindow | ( | ) |
Create a window to display the light settings.
Definition at line 776 of file imguiManager.cpp.
void imguiManager::WidgetLogWindow | ( | ) |
Create a window to display the log messages from the Logger.
Definition at line 891 of file imguiManager.cpp.
void imguiManager::WidgetObjectWindow | ( | ) |
create a window to display the object list and their properties.
Definition at line 393 of file imguiManager.cpp.
void imguiManager::WidgetRenderStats | ( | ) |
Create a window to display the stats of the engine. This includes FPS, draw calls, triangle count, etc. As well as the GPU, CPU information and RAM information.
Definition at line 1018 of file imguiManager.cpp.
void imguiManager::WidgetRenderWindow | ( | ImVec2 | availableSize | ) |
Create a window to display the scene. This window isn't used anymore.
Definition at line 972 of file imguiManager.cpp.
void imguiManager::WidgetSpeedSlider | ( | float * | speed | ) |
Creates a slider widget to control the speed of the demo spinning cube.
speed |
Definition at line 281 of file imguiManager.cpp.
void imguiManager::WidgetTerrainWindow | ( | ) |
Create a window to display the terrain generation options.
Definition at line 701 of file imguiManager.cpp.
bool imguiManager::m_EnableCelShading |
Definition at line 146 of file imguiManager.h.