diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/window.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/window.h b/ui/window.h index 6f8ad82..cb0118a 100644 --- a/ui/window.h +++ b/ui/window.h @@ -10,6 +10,10 @@ #include <special_members.hpp>
#include <string>
+using SDL_WindowPtr = wrapped_ptrt<SDL_Window, SDL_CreateWindow, SDL_DestroyWindow>;
+using GL_Context = std::remove_pointer_t<SDL_GLContext>;
+using SDL_GLContextPtr = wrapped_ptrt<GL_Context, SDL_GL_CreateContext, SDL_GL_DeleteContext>;
+
class Window {
public:
Window(size_t width, size_t height, const std::string & title, Uint32 flags);
@@ -31,9 +35,6 @@ protected: GlewInitHelper();
};
- using SDL_WindowPtr = wrapped_ptrt<SDL_Window, SDL_CreateWindow, SDL_DestroyWindow>;
- using GL_Context = std::remove_pointer_t<SDL_GLContext>;
- using SDL_GLContextPtr = wrapped_ptrt<GL_Context, SDL_GL_CreateContext, SDL_GL_DeleteContext>;
const glm::ivec2 size;
SDL_WindowPtr m_window;
SDL_GLContextPtr glContext;
|