#ifndef WC3RE_RENDER_RENDERER_HH__ #define WC3RE_RENDER_RENDERER_HH__ #include "sdlutil.hh" namespace game { class GameState; } namespace render { class Renderer { public: Renderer(); void run(); int getWidth() const; int getHeight() const; void pushGS(std::unique_ptr gs); std::unique_ptr popGS(); private: SDLInit sdlInit_; SDLWindowUPtr window_; SDLGLContext context_; std::vector > gamestates_; int width_, height_; }; } #endif