blob: fc0f3257dd4e543fd8fc81ad4dc6cfe7d6c80cea (
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
|
#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
|