This class provides an interface template for ImGui Implementation. Every backend should implement this class. More...
#include <ImGUIWrapper.hpp>
Public Member Functions | |
| virtual void | init ()=0 |
| Initialization called inside Engine class. | |
| virtual void | beginFrame ()=0 |
| Begining of UI rendering called in vex::Renderer::renderFrame. | |
| virtual void | endFrame ()=0 |
| Ends UI rendering for frame. | |
| virtual void | processEvent (const SDL_Event *event)=0 |
| Its used to process input needed by interaction with ImGui. | |
| void | addUIFunction (const std::function< void()> &func) |
| Adds a function to be executed during UI rendering. | |
| void | executeUIFunctions () |
| Called between beginFrame and endFrame, executes all imgui functions added by addUIFunction. | |
Protected Attributes | |
| std::vector< std::function< void()> > | m_uiFunctions |
This class provides an interface template for ImGui Implementation. Every backend should implement this class.
Definition at line 21 of file ImGUIWrapper.hpp.
|
inline |
Adds a function to be executed during UI rendering.
Example usage:
"#if DEBUG" is needed cause release builds dont compile with imgui support.
Definition at line 50 of file ImGUIWrapper.hpp.
|
pure virtual |
Begining of UI rendering called in vex::Renderer::renderFrame.
Implemented in EditorImGUIWrapper, and vex::VulkanImGUIWrapper.
|
pure virtual |
Ends UI rendering for frame.
Implemented in vex::VulkanImGUIWrapper.
|
inline |
Called between beginFrame and endFrame, executes all imgui functions added by addUIFunction.
Definition at line 55 of file ImGUIWrapper.hpp.
|
pure virtual |
Initialization called inside Engine class.
Implemented in EditorImGUIWrapper, and vex::VulkanImGUIWrapper.
|
pure virtual |
Its used to process input needed by interaction with ImGui.
Implemented in EditorImGUIWrapper, and vex::VulkanImGUIWrapper.
|
protected |
Definition at line 62 of file ImGUIWrapper.hpp.