#ifndef DISPLAY_INCLUDED_H #define DISPLAY_INCLUDED_H #include "ptr.hpp" #include #include #include #include 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; using SDL_WindowPtr = wrapped_ptrt; using SDL_GLContextPtr = wrapped_ptrt; SDL_WindowPtr m_window; SDL_GLContextPtr m_glContext; }; #endif