summaryrefslogtreecommitdiff
path: root/gfx/window.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-13 23:47:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-13 23:47:30 +0000
commit1686a01b6ae7467e71eac247078248de4a3b3423 (patch)
tree53716ce767b1b775dc06f658a41a647bddbbeac1 /gfx/window.h
parentMove TickDuration to its own files (diff)
downloadilt-1686a01b6ae7467e71eac247078248de4a3b3423.tar.bz2
ilt-1686a01b6ae7467e71eac247078248de4a3b3423.tar.xz
ilt-1686a01b6ae7467e71eac247078248de4a3b3423.zip
Refactor to start splitting out UI components
Diffstat (limited to 'gfx/window.h')
-rw-r--r--gfx/window.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/gfx/window.h b/gfx/window.h
deleted file mode 100644
index 252ccaa..0000000
--- a/gfx/window.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef DISPLAY_INCLUDED_H
-#define DISPLAY_INCLUDED_H
-
-#include "ptr.hpp"
-#include <SDL2/SDL.h>
-#include <special_members.hpp>
-#include <string>
-#include <type_traits>
-
-class Window {
-public:
- Window(int width, int height, const std::string & title);
- ~Window() = default;
-
- NO_COPY(Window);
- NO_MOVE(Window);
-
- void Clear(float r, float g, float b, float a) const;
- void SwapBuffers() const;
-
-private:
- using GL_Context = std::remove_pointer_t<SDL_GLContext>;
- using SDL_WindowPtr = wrapped_ptrt<SDL_Window, SDL_CreateWindow, SDL_DestroyWindow>;
- using SDL_GLContextPtr = wrapped_ptrt<GL_Context, SDL_GL_CreateContext, SDL_GL_DeleteContext>;
- SDL_WindowPtr m_window;
- SDL_GLContextPtr m_glContext;
-};
-
-#endif