summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-21 19:38:19 +0100
committerNao Pross <naopross@thearcway.org>2019-01-21 20:25:27 +0100
commit0d8137133f3392402a086cdb276a7ca812593d90 (patch)
tree55688f5452385831f801a805f14259bd02ca14ce /include
parentMake window_test threaded (diff)
downloadlibwsdl2-0d8137133f3392402a086cdb276a7ca812593d90.tar.gz
libwsdl2-0d8137133f3392402a086cdb276a7ca812593d90.zip
Update wrapsdl2::window to use Renderer instead of Surface
Diffstat (limited to '')
-rw-r--r--include/video.hpp11
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