Basic sdl3 support.

This commit is contained in:
jussi
2025-03-12 23:26:01 +02:00
parent bfa73944f7
commit 63f3c1781c
10 changed files with 58 additions and 16 deletions

View File

@@ -17,8 +17,10 @@
#ifdef PLATFORM_DESKTOP
#include "GLFW/glfw3.h"
#include "GLFW/glfw3native.h"
#elif PLATFORM_DESKTOP_SDL
#include <SDL.h>
#elif PLATFORM_DESKTOP_SDL2
#include <SDL2/SDL.h>
#elif PLATFORM_DESKTOP_SDL3
#include <SDL3/SDL.h>
#endif
#ifdef SHARED

View File

@@ -0,0 +1,3 @@
#pragma once
#include "SDL3/SDL.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#ifdef PLATFORM_DESKTOP_SDL
#ifdef PLATFORM_DESKTOP_SDL2
#define PLATFORM_SDL_EVENT_QUEUE_LEN 128
#endif
@@ -39,7 +39,7 @@ typedef struct {
GLFWpentabletdatafun glfwTabletDataCallback;
GLFWpentabletcursorfun glfwTabletCursorCallback;
GLFWpentabletproximityfun glfwTabletProximityCallback;
#elif PLATFORM_DESKTOP_SDL
#elif PLATFORM_DESKTOP_SDL2
int SDL_eventQueueLen;
SDL_Event* SDL_eventQueue;
#endif