diff options
Diffstat (limited to 'inc/window.hpp')
-rw-r--r-- | inc/window.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/inc/window.hpp b/inc/window.hpp index d801972..fc0f325 100644 --- a/inc/window.hpp +++ b/inc/window.hpp @@ -3,22 +3,25 @@ #include <SDL2/SDL.h> #include <string> +#include <iostream> +#include <GL/glew.h> + #include "constants.hpp" class Window { public: - Window(); - Window(std::string){}; - void Destroy(); + 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;}; - void Clear(); - void Render(); - SDL_Renderer* getRenderer(); + virtual ~Window(); private: SDL_Window* main; - SDL_Renderer* renderer; + SDL_GLContext glContext; + bool closed; }; #endif |