summaryrefslogtreecommitdiffstats
path: root/include/video.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-21 15:26:43 +0100
committerNao Pross <naopross@thearcway.org>2019-01-21 15:27:10 +0100
commit46a28a711fd730828ae5596f68ef3510a20b7b31 (patch)
tree95e1d89c6213fbb140e9b9c767eccdabab2eb369 /include/video.hpp
parentAdd window test (diff)
downloadlibwsdl2-46a28a711fd730828ae5596f68ef3510a20b7b31.tar.gz
libwsdl2-46a28a711fd730828ae5596f68ef3510a20b7b31.zip
Make window_test threaded
Diffstat (limited to '')
-rw-r--r--include/video.hpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/video.hpp b/include/video.hpp
index 1b6e022..45b1fc5 100644
--- a/include/video.hpp
+++ b/include/video.hpp
@@ -1,11 +1,16 @@
#pragma once
#include <string>
+#include <array>
-class SDL_Window;
-class SDL_Surface;
+extern "C" {
+#include <SDL2/SDL_video.h>
+}
namespace wrapsdl2 {
+ typedef SDL_Point point;
+ typedef SDL_Rect rect;
+
class window {
public:
window() = delete;
@@ -14,11 +19,14 @@ namespace wrapsdl2 {
window(const std::string& title, std::size_t width, std::size_t height);
~window();
- // manipulation
+ // setters
void show();
void hide();
void raise();
+ // getters
+ bool visible();
+
// rendering
void update();