From 5c46e0f0a924989201c6784b0f956bc442f14a7e Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 19 Feb 2017 09:17:35 -0600 Subject: -removed glm library, its in the debian repos -made opengl and sdl folders in includes, moved various *hpps to them --- inc/sdl/window.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 inc/sdl/window.hpp (limited to 'inc/sdl/window.hpp') diff --git a/inc/sdl/window.hpp b/inc/sdl/window.hpp new file mode 100644 index 0000000..fc0f325 --- /dev/null +++ b/inc/sdl/window.hpp @@ -0,0 +1,27 @@ +#ifndef window_h +#define window_h + +#include +#include +#include +#include + +#include "constants.hpp" + +class Window +{ + public: + Window(int width, int height, const std::string& title); + void Clear(float r, float g, float b, float a); + void swapBuffers(); + bool getClosed(){return closed;}; + + virtual ~Window(); + + private: + SDL_Window* main; + SDL_GLContext glContext; + bool closed; +}; + +#endif -- cgit v1.2.3