summaryrefslogtreecommitdiffstats
path: root/include/video.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/video.hpp')
-rw-r--r--include/video.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/video.hpp b/include/video.hpp
new file mode 100644
index 0000000..1b6e022
--- /dev/null
+++ b/include/video.hpp
@@ -0,0 +1,29 @@
+#pragma once
+
+#include <string>
+
+class SDL_Window;
+class SDL_Surface;
+
+namespace wrapsdl2 {
+ class window {
+ public:
+ window() = delete;
+ window(const window& other) = delete;
+
+ window(const std::string& title, std::size_t width, std::size_t height);
+ ~window();
+
+ // manipulation
+ void show();
+ void hide();
+ void raise();
+
+ // rendering
+ void update();
+
+ private:
+ SDL_Window *m_window;
+ SDL_Surface *m_surface;
+ };
+} \ No newline at end of file