#ifndef SDL_CONTEXT_HPP #define SDL_CONTEXT_HPP #include namespace bookmouse { class SdlContext { public: SdlContext() noexcept(false); ~SdlContext(); int setAttribute(SDL_GLattr attr, int value) const; consteval const char* glslVersion() { #if defined(IMGUI_IMPL_OPENGL_ES2) // GL ES 2.0 + GLSL 100 return "#version 100"; #elif defined(__APPLE__) // GL 3.2 Core + GLSL 150 return "#version 150"; #else // GL 3.0 + GLSL 130 return "#version 130"; #endif } private: }; } // namespace bookmouse #endif