summaryrefslogtreecommitdiff
path: root/inc/sdl/window.hpp
blob: 64b4e7bbcf9d5f150f5d2ad3822fbca4c796c595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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);
                ~Window();

                void Clear();
                void swapBuffers();
                bool getClosed(){return closed;};


	private:
		SDL_Window* main;
                SDL_GLContext glContext;
                bool closed;
};

#endif