summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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