Initial changes for Raylib 5.0 and some missing functions.

This commit is contained in:
jussi
2023-11-20 21:04:53 +02:00
parent 7765a23a2c
commit 05eaafb79e
21 changed files with 1659 additions and 803 deletions

View File

@@ -4,36 +4,44 @@
void unloadBuffer( Buffer *buffer );
/* Window-related functions. */
int lcoreCloseWindow( lua_State *L );
int lcoreIsWindowReady( lua_State *L );
int lcoreIsWindowFullscreen( lua_State *L );
int lcoreIsWindowHidden( lua_State *L );
int lcoreIsWindowMinimized( lua_State *L );
int lcoreIsWindowMaximized( lua_State *L );
int lcoreIsWindowFocused( lua_State *L );
int lcoreSetWindowMonitor( lua_State *L );
int lcoreSetWindowPosition( lua_State *L );
int lcoreSetWindowSize( lua_State *L );
int lcoreSetWindowOpacity( lua_State *L );
int lcoreGetWindowHandle( lua_State *L );
int lcoreSetWindowMinSize( lua_State *L );
int lcoreGetMonitorPosition( lua_State *L );
int lcoreGetMonitorSize( lua_State *L );
int lcoreGetWindowPosition( lua_State *L );
int lcoreGetScreenSize( lua_State *L );
int lcoreSetWindowState( lua_State *L );
int lcoreIsWindowState( lua_State *L );
int lcoreClearWindowState( lua_State *L );
int lcoreIsWindowResized( lua_State *L );
int lcoreIsWindowState( lua_State *L );
int lcoreSetWindowState( lua_State *L );
int lcoreClearWindowState( lua_State *L );
int lcoreToggleFullscreen( lua_State *L );
int lcoreToggleBorderlessWindowed( lua_State *L );
int lcoreMaximizeWindow( lua_State *L );
int lcoreMinimizeWindow( lua_State *L );
int lcoreRestoreWindow( lua_State *L );
int lcoreSetWindowIcon( lua_State *L );
int lcoreSetWindowIcons( lua_State *L );
int lcoreSetWindowTitle( lua_State *L );
int lcoreSetWindowPosition( lua_State *L );
int lcoreSetWindowMonitor( lua_State *L );
int lcoreSetWindowMinSize( lua_State *L );
int lcoreSetWindowMaxSize( lua_State *L );
int lcoreSetWindowSize( lua_State *L );
int lcoreSetWindowOpacity( lua_State *L );
int lcoreSetWindowFocused( lua_State *L );
int lcoreGetWindowHandle( lua_State *L );
int lcoreGetScreenSize( lua_State *L );
int lcoreGetRenderSize( lua_State *L );
int lcoreGetMonitorCount( lua_State *L );
int lcoreGetCurrentMonitor( lua_State *L );
int lcoreGetMonitorPosition( lua_State *L );
int lcoreGetMonitorSize( lua_State *L );
int lcoreGetMonitorPhysicalSize( lua_State *L );
int lcoreGetMonitorRefreshRate( lua_State *L );
int lcoreGetWindowPosition( lua_State *L );
int lcoreGetWindowScaleDPI( lua_State *L );
int lcoreGetMonitorName( lua_State *L );
int lcoreCloseWindow( lua_State *L );
int lcoreSetClipboardText( lua_State *L );
int lcoreGetClipboardText( lua_State *L );
/* Cursor-related functions. */
@@ -85,6 +93,10 @@ int lcoreSetTargetFPS( lua_State *L );
int lcoreGetFPS( lua_State *L );
int lcoreGetFrameTime( lua_State *L );
int lcoreGetTime( lua_State *L );
/* Random values generation functions. */
int lcoreSetRandomSeed( lua_State *L );
int lcoreGetRandomValue( lua_State *L );
int lcoreLoadRandomSequence( lua_State *L );
/* Misc. functions */
int lcoreTakeScreenshot( lua_State *L );
int lcoreSetConfigFlags( lua_State *L );
@@ -107,6 +119,7 @@ int lcoreGetFileNameWithoutExt( lua_State *L );
int lcoreGetDirectoryPath( lua_State *L );
int lcoreGetPrevDirectoryPath( lua_State *L );
int lcoreGetWorkingDirectory( lua_State *L );
int lcoreGetApplicationDirectory( lua_State *L );
int lcoreLoadDirectoryFiles( lua_State *L );
int lcoreLoadDirectoryFilesEx( lua_State *L );
int lcoreChangeDirectory( lua_State *L );
@@ -131,12 +144,13 @@ int lcoreGetKeyName( lua_State *L );
int lcoreGetKeyScancode( lua_State *L );
/* Input-related functions: gamepads. */
int lcoreIsGamepadAvailable( lua_State *L );
int lcoreGetGamepadName( lua_State *L );
int lcoreIsGamepadButtonPressed( lua_State *L );
int lcoreIsGamepadButtonDown( lua_State *L );
int lcoreIsGamepadButtonReleased( lua_State *L );
int lcoreGetGamepadAxisCount( lua_State *L );
int lcoreGetGamepadAxisMovement( lua_State *L );
int lcoreGetGamepadName( lua_State *L );
int lcoreSetGamepadMappings( lua_State *L );
/* Input-related functions: mouse. */
int lcoreIsMouseButtonPressed( lua_State *L );
int lcoreIsMouseButtonDown( lua_State *L );