mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-04 01:29:45 +02:00
24 lines
424 B
C++
24 lines
424 B
C++
#ifndef RWGAME_RWIMGUI_HPP
|
|
#define RWGAME_RWIMGUI_HPP
|
|
|
|
#include <SDL.h>
|
|
|
|
class RWGame;
|
|
struct ImGuiContext;
|
|
class ViewCamera;
|
|
|
|
class RWImGui {
|
|
RWGame &_game;
|
|
ImGuiContext *_context = nullptr;
|
|
public:
|
|
RWImGui(RWGame &game);
|
|
~RWImGui();
|
|
void init();
|
|
void destroy();
|
|
bool processEvent(SDL_Event &event);
|
|
void startFrame();
|
|
void endFrame(const ViewCamera &);
|
|
};
|
|
|
|
#endif // RWGAME_RWIMGUI_HPP
|