Class responsible for managing the GUI layer using ImGui. Handles initialization, frame management, and rendering of the graphical user interface with DirectX11 and GLFW.
More...
#include <ImGuiLayer.hpp>
|
| | GuiLayer ()=default |
| | Default constructor.
|
| | ~GuiLayer ()=default |
| | Destructor.
|
| void | Init (GLFWwindow *window, ID3D11Device *device, ID3D11DeviceContext *context, ID3D11RenderTargetView *rtv) |
| | Initializes the ImGui GUI layer with the required rendering context.
|
| void | BeginFrame () |
| | Begins a new ImGui frame. Must be called before drawing any GUI elements.
|
| void | EndFrame () |
| | Ends the ImGui frame and renders all GUI elements.
|
| void | Clear (float r, float g, float b, float a) |
| | Clears the render target with a specific color.
|
Class responsible for managing the GUI layer using ImGui. Handles initialization, frame management, and rendering of the graphical user interface with DirectX11 and GLFW.
◆ GuiLayer()
◆ ~GuiLayer()
◆ BeginFrame()
| void GuiLayer::BeginFrame |
( |
| ) |
|
Begins a new ImGui frame. Must be called before drawing any GUI elements.
◆ Clear()
| void GuiLayer::Clear |
( |
float | r, |
|
|
float | g, |
|
|
float | b, |
|
|
float | a ) |
Clears the render target with a specific color.
- Parameters
-
| r | Red color component |
| g | Green color component |
| b | Blue color component |
| a | Alpha color component |
◆ EndFrame()
| void GuiLayer::EndFrame |
( |
| ) |
|
Ends the ImGui frame and renders all GUI elements.
◆ Init()
| void GuiLayer::Init |
( |
GLFWwindow * | window, |
|
|
ID3D11Device * | device, |
|
|
ID3D11DeviceContext * | context, |
|
|
ID3D11RenderTargetView * | rtv ) |
Initializes the ImGui GUI layer with the required rendering context.
- Parameters
-
| window | Pointer to the GLFW window |
| device | DirectX11 device used for rendering |
| context | DirectX11 device context |
| rtv | Render target view used for GUI rendering |
The documentation for this class was generated from the following file: