15 #ifndef SDL_WINDOW_HPP_INCLUDED
16 #define SDL_WINDOW_HPP_INCLUDED
23 #include <SDL_version.h>
28 #include <boost/noncopyable.hpp>
30 #include <SDL_video.h>
52 class twindow :
private boost::noncopyable
75 const Uint32 window_flags,
76 const Uint32 render_flags);
89 void set_size(
const int w,
const int h);
123 void fill(Uint8
r, Uint8
g, Uint8
b, Uint8
a = 0);
163 operator SDL_Window*();
172 operator SDL_Renderer*();
void restore()
Dummy function for restoring the window.
void set_size(const int w, const int h)
Wrapper for SDL_SetWindowSize.
void full_screen()
Dummy function for setting the window to fullscreen mode.
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble b
void render()
Renders the contents of the window.
The wrapper class for the SDL_Window class.
GLubyte GLubyte GLubyte GLubyte w
void set_icon(const surface &icon)
Sets the icon of the window.
void fill(Uint8 r, Uint8 g, Uint8 b, Uint8 a=0)
Clears the contents of the window with a given color.
GLboolean GLboolean GLboolean GLboolean a
SDL_Window * window_
The SDL_Window we own.
void set_minimum_size(int min_w, int min_h)
Set mimimum size of the window.
void to_window()
Dummy function for returning the window to windowed mode.
GLfloat GLfloat GLfloat GLfloat h
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
twindow(const std::string &title, const int x, const int y, const int w, const int h, const Uint32 window_flags, const Uint32 render_flags)
Constructor.
void set_title(const std::string &title)
Sets the title of the window.
void maximize()
Dummy function for maximizing the window.
void center()
Dummy function for centering the window.
Uint32 pixel_format_
The preferred pixel format for the renderer.
GLsizei const GLcharARB ** string