summaryrefslogtreecommitdiff
path: root/display.h
blob: 25731305f2d8842d92509bd68fbe2c9fce4696b8 (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 DISPLAY_INCLUDED_H
#define DISPLAY_INCLUDED_H

#include <SDL2/SDL.h>
#include <string>

class Display {
public:
	Display(int width, int height, const std::string & title);

	void Clear(float r, float g, float b, float a);
	void SwapBuffers();

	virtual ~Display();

protected:
private:
	void
	operator=(const Display & display)
	{
	}
	Display(const Display & display) { }

	SDL_Window * m_window;
	SDL_GLContext m_glContext;
};

#endif