From 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 Mon Sep 17 00:00:00 2001 From: iamn1ck Date: Sun, 19 Feb 2017 07:00:34 -0600 Subject: -quadtree and opengl rendering are now in the master branch ! -using sdl_rect for location and size ended up being not so great due to it not having floats, so we reverted back to using location -much, much refractoring is now needed --- inc/window.hpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'inc/window.hpp') 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 #include +#include +#include + #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 -- cgit v1.2.3