1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00
openrw/rwgame/RWImGui.hpp

24 lines
424 B
C++
Raw Normal View History

2018-12-20 20:31:14 +01:00
#ifndef RWGAME_RWIMGUI_HPP
#define RWGAME_RWIMGUI_HPP
#include <SDL.h>
class RWGame;
struct ImGuiContext;
2019-05-21 21:04:55 +02:00
class ViewCamera;
2018-12-20 20:31:14 +01:00
class RWImGui {
RWGame &_game;
ImGuiContext *_context = nullptr;
public:
RWImGui(RWGame &game);
~RWImGui();
void init();
void destroy();
2019-05-21 21:04:55 +02:00
bool processEvent(SDL_Event &event);
void startFrame();
void endFrame(const ViewCamera &);
2018-12-20 20:31:14 +01:00
};
#endif // RWGAME_RWIMGUI_HPP