Adding glew as OpenGL initialization in a different scope

This commit is contained in:
Pcornat 2026-01-05 22:24:00 +01:00
commit 66e43ba333
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
5 changed files with 60 additions and 19 deletions

View file

@ -16,6 +16,8 @@ namespace gui {
public:
using modulesType = std::unordered_map<std::string, data::BasicData *>;
using windowPtr = GLFWwindow *;
static constexpr int default_width{ 1280 };
static constexpr int default_height{ 720 };
private:
static void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods);
@ -32,8 +34,6 @@ namespace gui {
modulesType modules;
bool valid{ false };
explicit Window(const bool debugOpengl,
const GLFWframebuffersizefun framebufferCallback,
GLFWwindow *shared,
@ -76,7 +76,7 @@ namespace gui {
void color_10_bits() noexcept;
bool check_color_depth(int color_depth) noexcept;
[[nodiscard]] bool check_color_depth(int color_depth) noexcept;
void opengl_debug() noexcept;
}