summaryrefslogtreecommitdiff
path: root/include/state.h
diff options
context:
space:
mode:
authorjussi2023-11-24 20:09:34 +0200
committerjussi2023-11-24 20:09:34 +0200
commita1887aa86694208549bee0ef46758d602ba79696 (patch)
treede8b310c3f9bfce849a1e7aa9a8188f8597c1c9b /include/state.h
parent925afdf101d6993e35d6c32c52766c7c3f89ae5e (diff)
downloadreilua-enhanced-a1887aa86694208549bee0ef46758d602ba79696.tar.gz
reilua-enhanced-a1887aa86694208549bee0ef46758d602ba79696.tar.bz2
reilua-enhanced-a1887aa86694208549bee0ef46758d602ba79696.zip
SDL Events.
Diffstat (limited to 'include/state.h')
-rw-r--r--include/state.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/state.h b/include/state.h
index 4b2fe2c..40963f5 100644
--- a/include/state.h
+++ b/include/state.h
@@ -1,6 +1,8 @@
#pragma once
-#define ALLOC_PAGE_SIZE 256
+#ifdef PLATFORM_DESKTOP_SDL
+ #define PLATFORM_SDL_EVENT_QUEUE_LEN 128
+#endif
typedef struct {
char *exePath;
@@ -14,7 +16,6 @@ typedef struct {
Material defaultMaterial;
int *RLGLcurrentShaderLocs;
/* Events. */
- /* GLFW events. */
#ifdef PLATFORM_DESKTOP
/* Window events. */
GLFWwindowsizefun raylibWindowSizeCallback;
@@ -30,8 +31,9 @@ typedef struct {
GLFWscrollfun raylibMouseScrollCallback;
GLFWcursorenterfun raylibCursorEnterCallback;
GLFWjoystickfun raylibJoystickCallback;
-// #elif PLATFORM_DESKTOP_SDL
-
+#elif PLATFORM_DESKTOP_SDL
+ int SDL_eventQueueLen;
+ SDL_Event *SDL_eventQueue;
#endif
} State;