feat(glfw): allow to switch backend

This commit is contained in:
2026-08-21 23:17:21 +02:00
parent 519a9b88f4
commit 192cf571b1
6 changed files with 58 additions and 6 deletions
+6
View File
@@ -3,6 +3,12 @@
#ifndef CONSTANTS_H
#define CONSTANTS_H
static const unsigned int GLFW_BACKEND_ANY = 0;
static const unsigned int GLFW_BACKEND_X11 = 1;
static const unsigned int GLFW_BACKEND_WAYLAND = 2;
static const unsigned int GLFW_BACKEND_COCOA = 3;
static const unsigned int GLFW_BACKEND_WIN32 = 4;
static const char *vertex_shader_text =
"#version 460\n"
"const mat4 mvp = "