From ca091e358a8b02423ba304bfca055712b3a70881 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 21 Jan 2019 04:48:02 +0100 Subject: Add basic window wrapper --- include/video.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/video.hpp (limited to 'include/video.hpp') 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 + +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 -- cgit v1.2.1