refactor(window): migrate from GLFW to SDL3 for window and input

This commit is contained in:
2026-07-17 11:18:52 +08:00
parent 236a2a1a49
commit cb1496fe4b
17 changed files with 1436 additions and 1707 deletions

View File

@@ -38,10 +38,7 @@ void Renderer::reload_config() {
}
void Renderer::init(bool debug_on) {
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
Logger::error("Failed to initialize glad");
exit(EXIT_FAILURE);
}
Logger::info("OpenGL Version: {}.{}", GLVersion.major, GLVersion.minor);
Logger::info("Renderer: {}",
reinterpret_cast<const char*>(glGetString(GL_RENDERER)));