29 lines
341 B
C++
29 lines
341 B
C++
#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
|