diff options
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/display.h b/display.h new file mode 100644 index 0000000..2573130 --- /dev/null +++ b/display.h @@ -0,0 +1,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
|