30 #ifndef WIDGET_GAMESTATE_H
31 #define WIDGET_GAMESTATE_H
40 Widget_Gamestate & operator=(
const Widget_Gamestate &);
43 Widget_Gamestate(
const std::pair<Point2f, Point2f> &virtual_window_,
const bool &fix_aspect_ratio_ =
true);
45 const std::pair<Point2f, Point2f> & get_virtual_window()
const;
46 const bool & fix_aspect_ratio()
const;
55 #if SDL_VERSION_ATLEAST(2,0,0)
67 #pragma warning( push )
68 #pragma warning( disable : 4251 )
70 std::pair<Point2i, Point2i> m_viewport;
71 std::pair<Point2f, Point2f> m_virtual_window;
73 #pragma warning( pop )
75 bool m_fix_aspect_ratio;
80 bool m_controller_mouse;
static void render(const Vertex_Buffer_Macrorenderer ¯orenderer, std::vector< Vertex_Buffer::Vertex_Buffer_Range * > &descriptors)
Keyboard button event structure (event.key.*)
Mouse wheel event structure (event.wheel.*)
Mouse motion event structure (event.motion.*)
The base class for all gamestates.