#ifndef GL_CONTEXT_HPP #define GL_CONTEXT_HPP #include "sdl_main_window.hpp" #include namespace bookmouse { class GlContext { public: explicit GlContext(SdlMainWindow& mainWindow); GlContext(const GlContext&) = delete; GlContext(GlContext&&) = delete; ~GlContext(); GlContext& operator=(const GlContext&) = delete; GlContext& operator=(GlContext&&) = delete; constexpr SDL_GLContext context() { return m_context; } private: SDL_GLContext m_context{nullptr}; }; } // namespace bookmouse #endif