Basic sdl3 support.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "main.h"
|
||||
#include "lua_core.h"
|
||||
#include "core.h"
|
||||
#include "platforms/core_desktop_sdl.h"
|
||||
#include "platforms/core_desktop_sdl2.h"
|
||||
|
||||
void platformDefineGlobals() {
|
||||
lua_State* L = state->luaState;
|
||||
23
src/platforms/core_desktop_sdl3.c
Normal file
23
src/platforms/core_desktop_sdl3.c
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "main.h"
|
||||
#include "lua_core.h"
|
||||
#include "core.h"
|
||||
#include "platforms/core_desktop_sdl3.h"
|
||||
|
||||
void platformDefineGlobals() {
|
||||
lua_State* L = state->luaState;
|
||||
|
||||
lua_getglobal( L, "RL" );
|
||||
/*DOC_DEFINES_START*/
|
||||
/*DOC_DEFINES_END*/
|
||||
lua_pop( L, -1 );
|
||||
}
|
||||
|
||||
void luaPlatformRegister() {
|
||||
// lua_State* L = state->luaState;
|
||||
// lua_getglobal( L, "RL" );
|
||||
|
||||
// lua_pop( L, -1 );
|
||||
#ifdef LUA_EVENTS
|
||||
// platformRegisterEvents();
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user