Add ImGui
This commit is contained in:
28
src/render/imguimanager.h
Normal file
28
src/render/imguimanager.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef IMGUI_MGR_H
|
||||
#define IMGUI_MGR_H
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include "core.h"
|
||||
|
||||
class ImGuiManager
|
||||
{
|
||||
public:
|
||||
void Init();
|
||||
void Shutdown();
|
||||
|
||||
void BeginFrame();
|
||||
void EndFrame();
|
||||
|
||||
void PollEvents(SDL_Event* _p_event);
|
||||
|
||||
private:
|
||||
void Draw();
|
||||
|
||||
private:
|
||||
bool m_ready = false;
|
||||
};
|
||||
|
||||
extern ImGuiManager g_ImGuiManager;
|
||||
|
||||
#endif // !IMGUI_MGR_H
|
||||
Reference in New Issue
Block a user