]> git.localhorst.tv Git - tacos.git/blobdiff - src/graphics/window.hpp
basic floor idea
[tacos.git] / src / graphics / window.hpp
diff --git a/src/graphics/window.hpp b/src/graphics/window.hpp
new file mode 100644 (file)
index 0000000..1685cf1
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef TACOS_GRAPHICS_WINDOW_HPP_
+#define TACOS_GRAPHICS_WINDOW_HPP_
+
+#include <SDL.h>
+
+
+namespace tacos {
+
+class Window {
+
+public:
+       Window(int width, int height);
+       ~Window() noexcept;
+
+       Window(const Window &) = delete;
+       Window &operator =(const Window &) = delete;
+
+       void Flip() noexcept;
+
+private:
+       SDL_Window *window;
+       SDL_GLContext context;
+
+};
+
+}
+
+#endif