diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-21 19:38:19 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-21 20:25:27 +0100 |
commit | 0d8137133f3392402a086cdb276a7ca812593d90 (patch) | |
tree | 55688f5452385831f801a805f14259bd02ca14ce /include/video.hpp | |
parent | Make window_test threaded (diff) | |
download | libwsdl2-0d8137133f3392402a086cdb276a7ca812593d90.tar.gz libwsdl2-0d8137133f3392402a086cdb276a7ca812593d90.zip |
Update wrapsdl2::window to use Renderer instead of Surface
Diffstat (limited to '')
-rw-r--r-- | include/video.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/video.hpp b/include/video.hpp index 45b1fc5..3c2a238 100644 --- a/include/video.hpp +++ b/include/video.hpp @@ -5,6 +5,7 @@ extern "C" { #include <SDL2/SDL_video.h> +#include <SDL2/SDL_render.h> } namespace wrapsdl2 { @@ -20,18 +21,24 @@ namespace wrapsdl2 { ~window(); // setters + void open(); + void close(); + + void show(); void hide(); void raise(); // getters - bool visible(); + bool is_open(); + bool is_visible(); // rendering void update(); private: + bool m_open; SDL_Window *m_window; - SDL_Surface *m_surface; + SDL_Renderer *m_renderer; }; }
\ No newline at end of file |