46 class ZENI_GRAPHICS_DLL Window;
50 ZENI_GRAPHICS_EXT
template class ZENI_GRAPHICS_DLL Singleton<Window>;
59 #pragma warning( push )
60 #pragma warning( disable : 4251 )
62 static Uninit g_uninit;
63 static Reinit g_reinit;
65 #pragma warning( pop )
79 inline static const bool & is_enabled();
80 inline static const Point2i & get_size();
81 inline static const int & get_width();
82 inline static const int & get_height();
84 inline static const bool & is_full_screen();
85 inline static const bool & is_frame_visible();
86 inline static const bool & is_resizable();
87 inline const std::vector<Point2i> & get_resolutions()
const;
90 inline const String & get_title()
const;
91 inline const String & get_taskmsg()
const;
92 static void set_tt(
const String &title,
const String &taskmsg);
93 static void set_title(
const String &title);
94 static void set_taskmsg(
const String &taskmsg);
98 enum Mouse_State {MOUSE_NORMAL, MOUSE_GRABBED = 1, MOUSE_HIDDEN = 2, MOUSE_GRABBED_AND_HIDDEN = 3, MOUSE_RELATIVE = 7};
99 Mouse_State get_mouse_state()
const;
100 void set_mouse_state(
const Mouse_State &mouse_state);
104 static void set_enabled(
const bool &
enabled);
116 static void preinit_resolution(
const Point2i &resolution =
Point2i(800, 600));
117 static void preinit_full_screen(
const bool &full_screen =
false);
118 static void preinit_show_frame(
const bool &show_frame_ =
true);
119 static void preinit_resizable(
const bool &resizable_ =
true);
123 static void set_failsafe_defaults();
125 static const bool & get_opengl_flag();
126 static void set_opengl_flag(
const bool &on =
true);
128 #if SDL_VERSION_ATLEAST(1,3,0)
130 virtual void alert_window_destroyed();
132 void alert_window_resized(
const Point2i &resolution);
135 #if !SDL_VERSION_ATLEAST(1,3,0)
145 #if SDL_VERSION_ATLEAST(1,3,0)
152 static bool g_screen_full;
153 static bool g_screen_show_frame;
154 static bool g_screen_resizable;
155 static bool g_opengl_flag;
157 static String & get_m_title();
158 static String & get_m_taskmsg();
159 static String & get_m_icon();
162 #pragma warning( push )
163 #pragma warning( disable : 4251 )
165 std::vector<Point2i> m_modes;
167 #pragma warning( pop )
171 static bool g_enabled;
GLenum GLsizei const GLuint GLboolean enabled
A collection of pixels used in software blitting.
Window & get_Window()
Get access to the singleton.
The Window Management Singleton.
A 2D Point represented with integers.