diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-19 09:17:35 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:41 -0600 |
commit | 5c46e0f0a924989201c6784b0f956bc442f14a7e (patch) | |
tree | 33b5889b872023bd7d414f7baec45706330813b3 /inc/sdl/window.hpp | |
parent | 2cc21176467d4501adb7bfb9ee03eb9a2a7d14f2 (diff) |
-removed glm library, its in the debian repos
-made opengl and sdl folders in includes, moved various *hpps to them
Diffstat (limited to 'inc/sdl/window.hpp')
-rw-r--r-- | inc/sdl/window.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
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 <SDL2/SDL.h> +#include <string> +#include <iostream> +#include <GL/glew.h> + +#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 |