|
| RenderWindow () |
| Default Constructor. No window or renderer is created. More...
|
|
| RenderWindow (Vector2u dimension, const std::string &title, Uint32 windowFlags=Window::Flags::Shown) |
| Creates a window and renderer with the given parameters. More...
|
|
| RenderWindow (const RenderWindow &other)=delete |
|
| RenderWindow (const RenderWindow &&other)=delete |
|
virtual | ~RenderWindow () |
|
| Window () |
| Default Constructor. No window is created. More...
|
|
| Window (Vector2u dimension, const std::string &title, Uint32 windowFlags) |
| Creates a window with the given parameters. More...
|
|
| Window (const Window &other)=delete |
|
| Window (Window &&other)=delete |
|
virtual | ~Window () |
|
void | Create (Vector2u dimension, const std::string &title, Uint32 windowFlags) |
| Creates the window. More...
|
|
void | Close () |
| Destroys the window. More...
|
|
bool | IsOpen () const |
| Wether or not the window object is created. More...
|
|
bool | PollEvent (SDL_Event *event) |
| A non-blocking event polling function. More...
|
|
bool | WaitEvent (SDL_Event *event) |
| A blocking event polling function. More...
|
|
Vector2i | GetPosition () const |
| Returns the current position of the window. More...
|
|
void | SetPosition (Vector2i position) |
| Sets a new window position. More...
|
|
void | SetPosition (int x, int y) |
| Sets a new window position. More...
|
|
Vector2u | GetSize () const |
| Gets the current window size. More...
|
|
void | SetSize (Vector2u size) |
| Sets a new window size. More...
|
|
void | SetSize (unsigned int width, unsigned int height) |
| Sets a new window size. More...
|
|
std::string | GetTitle () const |
| Gets the current window title. More...
|
|
void | SetTitle (std::string title) |
| Sets a new window title. More...
|
|
SDL_Window *const | GetWindow () const |
| Returns a constant pointer to the SDL_Window. More...
|
|
void | SetVisible (bool visible) |
| Set the windows visibility. More...
|
|
void | SetVsync (bool vsync) |
| (De)activates VSync !globally! More...
|
|
void | SetMouseCursorVisible (bool visible) |
| Hides/Shows the mouse cursor inside the windos. More...
|
|
void | SetMouseCursorGrabbed (bool grabbed) |
| Traps the mouse cursor inside the window. More...
|
|
void | SetIcon (Uint32 width, Uint32 height, const Uint8 *pixels) |
| Sets the window icon to an array of RGBA values. More...
|
|
void | SetIcon (Uint32 width, Uint32 height, const Uint32 *pixels) |
| Sets the window icon to an array of RGBA values. More...
|
|
void | SetIcon (SDL_Surface *icon) |
| Sets the window icon to a SDL_Surface. More...
|
|
void | SetMouseCursor (SDL_Cursor *cursor) |
| Changes the mouse cursor. More...
|
|
void | SetMouseCursor (const Cursor &cursor) |
| Changes the mouse cursor. More...
|
|
virtual | ~RenderTarget () |
|
void | Clear (const Color &color=Color::Black) |
| Clears the display. More...
|
|
void | Draw (const Drawable &drawable) |
| Draws a sdlu::Drawable to the SDL_Renderer. More...
|
|
void | Display () |
| Display the current state of the renderer to the screen. More...
|
|
void | SetMaxFramerate (Uint32 max) |
| Sets a maximum framerate on the display function. More...
|
|
A class that handles window related functionality.
A class that combines the SDL_Window and SDL_Renderer and behaves similar to the sf::RenderWindow from SFML. It provides utility and wrappers for common operations on those objects.