8#define SDL_MAIN_HANDLED
34 virtual ImGuiIO& getIO() = 0;
51 m_uiFunctions.push_back(func);
56 for (
auto& func : m_uiFunctions) {
62 std::vector<std::function<void()>> m_uiFunctions;
This class provides an interface template for ImGui Implementation. Every backend should implement th...
void executeUIFunctions()
Called between beginFrame and endFrame, executes all imgui functions added by addUIFunction.
virtual void init()=0
Initialization called inside Engine class.
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.
virtual void beginFrame()=0
Begining of UI rendering called in vex::Renderer::renderFrame.