Replace GLFW with SDL3

Since I plan to use SDL3 API, I had to replace GLFW
window and surface creation with SDL3 variant. For now
it's working fine.
This commit is contained in:
everyonecancode authored and Piotr Krygier committed 2025-08-29 10:02:14 +02:00
1 parent 393b59ad5d
commit 1b5cc7a79c
9 files changed
+43 -91

No files matched your search

+3 -3
View File
@@ -12,10 +12,10 @@
#ifndef WINDOW_H
#define WINDOW_H
#include <SDL3/SDL_main.h>
#include <vulkan/vulkan.h>
/* Vulkan header MUST be included before glfw */
#include <GLFW/glfw3.h>
#include "utilities/commons.h"
#include "graphics_context.h"
@@ -30,7 +30,7 @@
* WINDOW_WINDOW_NOT_CREATED
*
*/
rse_err_t window_init(GLFWwindow** window_handle, bool* is_framebuffer_resized);
rse_err_t window_init(SDL_Window **window_handle, bool *is_framebuffer_resized);
/**
* @brief Main window loop
@@ -45,6 +45,6 @@ rse_err_t window_loop(struct graphics_context_t* context);
*
* @param window_handle Pointer to window window_handle
*/
void window_terminate(GLFWwindow* window_handle);
void window_terminate(SDL_Window* window_handle);
#endif /* WINDOW_H */