From 5044a05aa16e6bb957fc40fca19ac8dd29c47a35 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 14 Nov 2022 20:30:32 +0000 Subject: Add some tests over the behaviour of windows and contexts and glStuff --- ui/window.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ui') 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 #include +using SDL_WindowPtr = wrapped_ptrt; +using GL_Context = std::remove_pointer_t; +using SDL_GLContextPtr = wrapped_ptrt; + 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; - using GL_Context = std::remove_pointer_t; - using SDL_GLContextPtr = wrapped_ptrt; const glm::ivec2 size; SDL_WindowPtr m_window; SDL_GLContextPtr glContext; -- cgit v1.2.3