ImGuiBackend Class
Platform-agnostic interface for ImGui backend implementations. More...
Declaration
Derived Classes
| class | ImGuiGlfwOpenGLBackend |
|
ImGui backend for GLFW windowing and OpenGL 4.1 rendering. More... | |
Public Constructors Index
| ImGuiBackend ()=default | |
|
Default constructor. More... | |
Public Destructor Index
| ~ImGuiBackend ()=default | |
|
Virtual destructor for polymorphic backend cleanup. More... | |
Public Member Functions Index
| bool | newFrame ()=0 |
|
Prepares ImGui for a new frame. More... | |
| void | renderDrawData (ImDrawData *drawData)=0 |
|
Renders ImGui draw data to the screen. More... | |
Description
Platform-agnostic interface for ImGui backend implementations.
Concrete backends (e.g., GLFW+OpenGL, SDL+Vulkan) implement this interface to provide platform-specific initialization, frame setup, and rendering.
Definition at line 22 of file ImGuiBackend.ixx.
Public Constructors
ImGuiBackend()
| default |
Default constructor.
Definition at line 29 of file ImGuiBackend.ixx.
Public Destructor
~ImGuiBackend()
| virtual default |
Virtual destructor for polymorphic backend cleanup.
Definition at line 34 of file ImGuiBackend.ixx.
Public Member Functions
newFrame()
|
Prepares ImGui for a new frame.
Must be called at the beginning of each frame before any ImGui calls. Typically invokes platform-specific NewFrame() implementations.
- Returns
true if frame setup succeeded; otherwise false.
Definition at line 44 of file ImGuiBackend.ixx.
Referenced by helios::imgui::ImGuiOverlay::render.
renderDrawData()
|
Renders ImGui draw data to the screen.
Called after ImGui::Render() to submit draw commands to the GPU.
- Parameters
-
drawData Pointer to ImGui draw data (typically from ImGui::GetDrawData()). Implementations may treat nullptr as a no-op.
Definition at line 54 of file ImGuiBackend.ixx.
Referenced by helios::imgui::ImGuiOverlay::render.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.