Basic sdl3 support.
This commit is contained in:
@@ -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
|
||||
|
||||
3
include/platforms/core_desktop_sdl3.h
Normal file
3
include/platforms/core_desktop_sdl3.h
Normal file
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#include "SDL3/SDL.h"
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user