nCine::ImGuiDrawing class

Handles ImGui drawing.

Bridges the ImGui debug overlay to the engine renderer. Owns the ImGui shader program, vertex and index buffers and the GPU textures backing the ImGui font and user atlases. Depending on the mode selected at construction, it either submits RenderCommand instances through the scene-graph RenderQueue or issues the OpenGL draw calls directly.

Constructors, destructors, conversion operators

ImGuiDrawing(bool withSceneGraph) explicit
~ImGuiDrawing()

Public functions

void NewFrame()
Begins a new ImGui frame.
void EndFrame(RenderQueue& renderQueue)
Ends the frame and submits ImGui draw data as render commands.
void EndFrame()
Ends the frame and draws ImGui directly with OpenGL.

Function documentation

void nCine::ImGuiDrawing::NewFrame()

Begins a new ImGui frame.

Forwards input from the active backend and updates the projection matrix when the display size changes.

void nCine::ImGuiDrawing::EndFrame(RenderQueue& renderQueue)

Ends the frame and submits ImGui draw data as render commands.

Parameters
renderQueue Queue that receives the generated render commands