Pointer variable declaration style change.
This commit is contained in:
@@ -1,52 +1,52 @@
|
||||
#pragma once
|
||||
|
||||
/* Audio device management functions. */
|
||||
int laudioInitAudioDevice( lua_State *L );
|
||||
int laudioCloseAudioDevice( lua_State *L );
|
||||
int laudioIsAudioDeviceReady( lua_State *L );
|
||||
int laudioSetMasterVolume( lua_State *L );
|
||||
int laudioGetMasterVolume( lua_State *L );
|
||||
int laudioInitAudioDevice( lua_State* L );
|
||||
int laudioCloseAudioDevice( lua_State* L );
|
||||
int laudioIsAudioDeviceReady( lua_State* L );
|
||||
int laudioSetMasterVolume( lua_State* L );
|
||||
int laudioGetMasterVolume( lua_State* L );
|
||||
/* Wave/Sound loading/unloading functions. */
|
||||
int laudioLoadSound( lua_State *L );
|
||||
int laudioLoadWave( lua_State *L );
|
||||
int laudioLoadWaveFromMemory( lua_State *L );
|
||||
int laudioIsWaveReady( lua_State *L );
|
||||
int laudioLoadSoundFromWave( lua_State *L );
|
||||
int laudioLoadSoundAlias( lua_State *L );
|
||||
int laudioIsSoundReady( lua_State *L );
|
||||
int laudioUnloadWave( lua_State *L );
|
||||
int laudioUnloadSound( lua_State *L );
|
||||
int laudioUnloadSoundAlias( lua_State *L );
|
||||
int laudioExportWave( lua_State *L );
|
||||
int laudioExportWaveAsCode( lua_State *L );
|
||||
int laudioLoadSound( lua_State* L );
|
||||
int laudioLoadWave( lua_State* L );
|
||||
int laudioLoadWaveFromMemory( lua_State* L );
|
||||
int laudioIsWaveReady( lua_State* L );
|
||||
int laudioLoadSoundFromWave( lua_State* L );
|
||||
int laudioLoadSoundAlias( lua_State* L );
|
||||
int laudioIsSoundReady( lua_State* L );
|
||||
int laudioUnloadWave( lua_State* L );
|
||||
int laudioUnloadSound( lua_State* L );
|
||||
int laudioUnloadSoundAlias( lua_State* L );
|
||||
int laudioExportWave( lua_State* L );
|
||||
int laudioExportWaveAsCode( lua_State* L );
|
||||
/* Wave/Sound management functions. */
|
||||
int laudioPlaySound( lua_State *L );
|
||||
int laudioStopSound( lua_State *L );
|
||||
int laudioPauseSound( lua_State *L );
|
||||
int laudioResumeSound( lua_State *L );
|
||||
int laudioIsSoundPlaying( lua_State *L );
|
||||
int laudioSetSoundVolume( lua_State *L );
|
||||
int laudioSetSoundPitch( lua_State *L );
|
||||
int laudioSetSoundPan( lua_State *L );
|
||||
int laudioWaveFormat( lua_State *L );
|
||||
int laudioWaveCopy( lua_State *L );
|
||||
int laudioWaveCrop( lua_State *L );
|
||||
int laudioPlaySound( lua_State* L );
|
||||
int laudioStopSound( lua_State* L );
|
||||
int laudioPauseSound( lua_State* L );
|
||||
int laudioResumeSound( lua_State* L );
|
||||
int laudioIsSoundPlaying( lua_State* L );
|
||||
int laudioSetSoundVolume( lua_State* L );
|
||||
int laudioSetSoundPitch( lua_State* L );
|
||||
int laudioSetSoundPan( lua_State* L );
|
||||
int laudioWaveFormat( lua_State* L );
|
||||
int laudioWaveCopy( lua_State* L );
|
||||
int laudioWaveCrop( lua_State* L );
|
||||
/* Music management functions. */
|
||||
int laudioLoadMusicStream( lua_State *L );
|
||||
int laudioLoadMusicStreamFromMemory( lua_State *L );
|
||||
int laudioIsMusicReady( lua_State *L );
|
||||
int laudioUnloadMusicStream( lua_State *L );
|
||||
int laudioPlayMusicStream( lua_State *L );
|
||||
int laudioIsMusicStreamPlaying( lua_State *L );
|
||||
int laudioUpdateMusicStream( lua_State *L );
|
||||
int laudioStopMusicStream( lua_State *L );
|
||||
int laudioPauseMusicStream( lua_State *L );
|
||||
int laudioResumeMusicStream( lua_State *L );
|
||||
int laudioSeekMusicStream( lua_State *L );
|
||||
int laudioSetMusicVolume( lua_State *L );
|
||||
int laudioSetMusicPitch( lua_State *L );
|
||||
int laudioSetMusicPan( lua_State *L );
|
||||
int laudioSetMusicLooping( lua_State *L );
|
||||
int laudioGetMusicLooping( lua_State *L );
|
||||
int laudioGetMusicTimeLength( lua_State *L );
|
||||
int laudioGetMusicTimePlayed( lua_State *L );
|
||||
int laudioLoadMusicStream( lua_State* L );
|
||||
int laudioLoadMusicStreamFromMemory( lua_State* L );
|
||||
int laudioIsMusicReady( lua_State* L );
|
||||
int laudioUnloadMusicStream( lua_State* L );
|
||||
int laudioPlayMusicStream( lua_State* L );
|
||||
int laudioIsMusicStreamPlaying( lua_State* L );
|
||||
int laudioUpdateMusicStream( lua_State* L );
|
||||
int laudioStopMusicStream( lua_State* L );
|
||||
int laudioPauseMusicStream( lua_State* L );
|
||||
int laudioResumeMusicStream( lua_State* L );
|
||||
int laudioSeekMusicStream( lua_State* L );
|
||||
int laudioSetMusicVolume( lua_State* L );
|
||||
int laudioSetMusicPitch( lua_State* L );
|
||||
int laudioSetMusicPan( lua_State* L );
|
||||
int laudioSetMusicLooping( lua_State* L );
|
||||
int laudioGetMusicLooping( lua_State* L );
|
||||
int laudioGetMusicTimeLength( lua_State* L );
|
||||
int laudioGetMusicTimePlayed( lua_State* L );
|
||||
|
||||
416
include/core.h
416
include/core.h
@@ -4,229 +4,229 @@
|
||||
|
||||
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 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 lcoreSetClipboardText( lua_State *L );
|
||||
int lcoreGetClipboardText( lua_State *L );
|
||||
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 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 lcoreSetClipboardText( lua_State* L );
|
||||
int lcoreGetClipboardText( lua_State* L );
|
||||
/* Cursor-related functions. */
|
||||
int lcoreShowCursor( lua_State *L );
|
||||
int lcoreHideCursor( lua_State *L );
|
||||
int lcoreIsCursorHidden( lua_State *L );
|
||||
int lcoreEnableCursor( lua_State *L );
|
||||
int lcoreDisableCursor( lua_State *L );
|
||||
int lcoreIsCursorOnScreen( lua_State *L );
|
||||
int lcoreShowCursor( lua_State* L );
|
||||
int lcoreHideCursor( lua_State* L );
|
||||
int lcoreIsCursorHidden( lua_State* L );
|
||||
int lcoreEnableCursor( lua_State* L );
|
||||
int lcoreDisableCursor( lua_State* L );
|
||||
int lcoreIsCursorOnScreen( lua_State* L );
|
||||
/* Drawing-related functions. */
|
||||
int lcoreClearBackground( lua_State *L );
|
||||
int lcoreBeginDrawing( lua_State *L );
|
||||
int lcoreEndDrawing( lua_State *L );
|
||||
int lcoreBeginMode2D( lua_State *L );
|
||||
int lcoreEndMode2D( lua_State *L );
|
||||
int lcoreBeginMode3D( lua_State *L );
|
||||
int lcoreEndMode3D( lua_State *L );
|
||||
int lcoreBeginTextureMode( lua_State *L );
|
||||
int lcoreEndTextureMode( lua_State *L );
|
||||
int lcoreBeginShaderMode( lua_State *L );
|
||||
int lcoreEndShaderMode( lua_State *L );
|
||||
int lcoreBeginBlendMode( lua_State *L );
|
||||
int lcoreEndBlendMode( lua_State *L );
|
||||
int lcoreBeginScissorMode( lua_State *L );
|
||||
int lcoreEndScissorMode( lua_State *L );
|
||||
int lcoreClearBackground( lua_State* L );
|
||||
int lcoreBeginDrawing( lua_State* L );
|
||||
int lcoreEndDrawing( lua_State* L );
|
||||
int lcoreBeginMode2D( lua_State* L );
|
||||
int lcoreEndMode2D( lua_State* L );
|
||||
int lcoreBeginMode3D( lua_State* L );
|
||||
int lcoreEndMode3D( lua_State* L );
|
||||
int lcoreBeginTextureMode( lua_State* L );
|
||||
int lcoreEndTextureMode( lua_State* L );
|
||||
int lcoreBeginShaderMode( lua_State* L );
|
||||
int lcoreEndShaderMode( lua_State* L );
|
||||
int lcoreBeginBlendMode( lua_State* L );
|
||||
int lcoreEndBlendMode( lua_State* L );
|
||||
int lcoreBeginScissorMode( lua_State* L );
|
||||
int lcoreEndScissorMode( lua_State* L );
|
||||
/* Shader management functions. */
|
||||
int lcoreLoadShader( lua_State *L );
|
||||
int lcoreLoadShaderFromMemory( lua_State *L );
|
||||
int lcoreIsShaderReady( lua_State *L );
|
||||
int lcoreGetShaderId( lua_State *L );
|
||||
int lcoreGetShaderLocation( lua_State *L );
|
||||
int lcoreGetShaderLocationAttrib( lua_State *L );
|
||||
int lcoreSetShaderLocationIndex( lua_State *L );
|
||||
int lcoreGetShaderLocationIndex( lua_State *L );
|
||||
int lcoreSetShaderValueMatrix( lua_State *L );
|
||||
int lcoreSetShaderValueTexture( lua_State *L );
|
||||
int lcoreSetShaderValue( lua_State *L );
|
||||
int lcoreSetShaderValueV( lua_State *L );
|
||||
int lcoreUnloadShader( lua_State *L );
|
||||
int lcoreLoadShader( lua_State* L );
|
||||
int lcoreLoadShaderFromMemory( lua_State* L );
|
||||
int lcoreIsShaderReady( lua_State* L );
|
||||
int lcoreGetShaderId( lua_State* L );
|
||||
int lcoreGetShaderLocation( lua_State* L );
|
||||
int lcoreGetShaderLocationAttrib( lua_State* L );
|
||||
int lcoreSetShaderLocationIndex( lua_State* L );
|
||||
int lcoreGetShaderLocationIndex( lua_State* L );
|
||||
int lcoreSetShaderValueMatrix( lua_State* L );
|
||||
int lcoreSetShaderValueTexture( lua_State* L );
|
||||
int lcoreSetShaderValue( lua_State* L );
|
||||
int lcoreSetShaderValueV( lua_State* L );
|
||||
int lcoreUnloadShader( lua_State* L );
|
||||
/* Screen-space-related functions. */
|
||||
int lcoreGetMouseRay( lua_State *L );
|
||||
int lcoreGetCameraMatrix( lua_State *L );
|
||||
int lcoreGetCameraMatrix2D( lua_State *L );
|
||||
int lcoreGetWorldToScreen( lua_State *L );
|
||||
int lcoreGetWorldToScreenEx( lua_State *L );
|
||||
int lcoreGetWorldToScreen2D( lua_State *L );
|
||||
int lcoreGetScreenToWorld2D( lua_State *L );
|
||||
int lcoreGetMouseRay( lua_State* L );
|
||||
int lcoreGetCameraMatrix( lua_State* L );
|
||||
int lcoreGetCameraMatrix2D( lua_State* L );
|
||||
int lcoreGetWorldToScreen( lua_State* L );
|
||||
int lcoreGetWorldToScreenEx( lua_State* L );
|
||||
int lcoreGetWorldToScreen2D( lua_State* L );
|
||||
int lcoreGetScreenToWorld2D( lua_State* L );
|
||||
/* Timing-related functions. */
|
||||
int lcoreSetTargetFPS( lua_State *L );
|
||||
int lcoreGetFPS( lua_State *L );
|
||||
int lcoreGetFrameTime( lua_State *L );
|
||||
int lcoreGetTime( lua_State *L );
|
||||
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 );
|
||||
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 );
|
||||
int lcoreTraceLog( lua_State *L );
|
||||
int lcoreSetTraceLogLevel( lua_State *L );
|
||||
int lcoreSetLogLevelInvalid( lua_State *L );
|
||||
int lcoreGetLogLevelInvalid( lua_State *L );
|
||||
int lcoreOpenURL( lua_State *L );
|
||||
int lcoreIsGCUnloadEnabled( lua_State *L );
|
||||
int lcoreSetGCUnload( lua_State *L );
|
||||
int lcoreTakeScreenshot( lua_State* L );
|
||||
int lcoreSetConfigFlags( lua_State* L );
|
||||
int lcoreTraceLog( lua_State* L );
|
||||
int lcoreSetTraceLogLevel( lua_State* L );
|
||||
int lcoreSetLogLevelInvalid( lua_State* L );
|
||||
int lcoreGetLogLevelInvalid( lua_State* L );
|
||||
int lcoreOpenURL( lua_State* L );
|
||||
int lcoreIsGCUnloadEnabled( lua_State* L );
|
||||
int lcoreSetGCUnload( lua_State* L );
|
||||
/* Files management functions. */
|
||||
int lcoreLoadFileData( lua_State *L );
|
||||
int lcoreSaveFileData( lua_State *L );
|
||||
int lcoreExportDataAsCode( lua_State *L );
|
||||
int lcoreLoadFileText( lua_State *L );
|
||||
int lcoreSaveFileText( lua_State *L );
|
||||
int lcoreLoadFileData( lua_State* L );
|
||||
int lcoreSaveFileData( lua_State* L );
|
||||
int lcoreExportDataAsCode( lua_State* L );
|
||||
int lcoreLoadFileText( lua_State* L );
|
||||
int lcoreSaveFileText( lua_State* L );
|
||||
/* Files system functions. */
|
||||
int lcoreGetBasePath( lua_State *L );
|
||||
int lcoreFileExists( lua_State *L );
|
||||
int lcoreDirectoryExists( lua_State *L );
|
||||
int lcoreIsFileExtension( lua_State *L );
|
||||
int lcoreGetFileLength( lua_State *L );
|
||||
int lcoreGetFileExtension( lua_State *L );
|
||||
int lcoreGetFileName( lua_State *L );
|
||||
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 );
|
||||
int lcoreIsPathFile( lua_State *L );
|
||||
int lcoreIsFileDropped( lua_State *L );
|
||||
int lcoreLoadDroppedFiles( lua_State *L );
|
||||
int lcoreGetFileModTime( lua_State *L );
|
||||
int lcoreGetBasePath( lua_State* L );
|
||||
int lcoreFileExists( lua_State* L );
|
||||
int lcoreDirectoryExists( lua_State* L );
|
||||
int lcoreIsFileExtension( lua_State* L );
|
||||
int lcoreGetFileLength( lua_State* L );
|
||||
int lcoreGetFileExtension( lua_State* L );
|
||||
int lcoreGetFileName( lua_State* L );
|
||||
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 );
|
||||
int lcoreIsPathFile( lua_State* L );
|
||||
int lcoreIsFileDropped( lua_State* L );
|
||||
int lcoreLoadDroppedFiles( lua_State* L );
|
||||
int lcoreGetFileModTime( lua_State* L );
|
||||
/* Compression/Encoding functionality. */
|
||||
int lcoreCompressData( lua_State *L );
|
||||
int lcoreDecompressData( lua_State *L );
|
||||
int lcoreEncodeDataBase64( lua_State *L );
|
||||
int lcoreDecodeDataBase64( lua_State *L );
|
||||
int lcoreCompressData( lua_State* L );
|
||||
int lcoreDecompressData( lua_State* L );
|
||||
int lcoreEncodeDataBase64( lua_State* L );
|
||||
int lcoreDecodeDataBase64( lua_State* L );
|
||||
/* Input-related functions: keyboard. */
|
||||
int lcoreIsKeyPressed( lua_State *L );
|
||||
int lcoreIsKeyDown( lua_State *L );
|
||||
int lcoreIsKeyReleased( lua_State *L );
|
||||
int lcoreIsKeyUp( lua_State *L );
|
||||
int lcoreGetKeyPressed( lua_State *L );
|
||||
int lcoreGetCharPressed( lua_State *L );
|
||||
int lcoreSetExitKey( lua_State *L );
|
||||
int lcoreGetKeyName( lua_State *L );
|
||||
int lcoreGetKeyScancode( lua_State *L );
|
||||
int lcoreIsKeyPressed( lua_State* L );
|
||||
int lcoreIsKeyDown( lua_State* L );
|
||||
int lcoreIsKeyReleased( lua_State* L );
|
||||
int lcoreIsKeyUp( lua_State* L );
|
||||
int lcoreGetKeyPressed( lua_State* L );
|
||||
int lcoreGetCharPressed( lua_State* L );
|
||||
int lcoreSetExitKey( lua_State* L );
|
||||
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 lcoreSetGamepadMappings( lua_State *L );
|
||||
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 lcoreSetGamepadMappings( lua_State* L );
|
||||
/* Input-related functions: mouse. */
|
||||
int lcoreIsMouseButtonPressed( lua_State *L );
|
||||
int lcoreIsMouseButtonDown( lua_State *L );
|
||||
int lcoreIsMouseButtonReleased( lua_State *L );
|
||||
int lcoreIsMouseButtonUp( lua_State *L );
|
||||
int lcoreGetMousePosition( lua_State *L );
|
||||
int lcoreGetMouseDelta( lua_State *L );
|
||||
int lcoreSetMousePosition( lua_State *L );
|
||||
int lcoreSetMouseOffset( lua_State *L );
|
||||
int lcoreSetMouseScale( lua_State *L );
|
||||
int lcoreGetMouseWheelMove( lua_State *L );
|
||||
int lcoreSetMouseCursor( lua_State *L );
|
||||
int lcoreIsMouseButtonPressed( lua_State* L );
|
||||
int lcoreIsMouseButtonDown( lua_State* L );
|
||||
int lcoreIsMouseButtonReleased( lua_State* L );
|
||||
int lcoreIsMouseButtonUp( lua_State* L );
|
||||
int lcoreGetMousePosition( lua_State* L );
|
||||
int lcoreGetMouseDelta( lua_State* L );
|
||||
int lcoreSetMousePosition( lua_State* L );
|
||||
int lcoreSetMouseOffset( lua_State* L );
|
||||
int lcoreSetMouseScale( lua_State* L );
|
||||
int lcoreGetMouseWheelMove( lua_State* L );
|
||||
int lcoreSetMouseCursor( lua_State* L );
|
||||
/* Input-related functions: touch. */
|
||||
int lcoreGetTouchPosition( lua_State *L );
|
||||
int lcoreGetTouchPointId( lua_State *L );
|
||||
int lcoreGetTouchPointCount( lua_State *L );
|
||||
int lcoreGetTouchPosition( lua_State* L );
|
||||
int lcoreGetTouchPointId( lua_State* L );
|
||||
int lcoreGetTouchPointCount( lua_State* L );
|
||||
/* Input-related functions: gestures. */
|
||||
int lcoreSetGesturesEnabled( lua_State *L );
|
||||
int lcoreIsGestureDetected( lua_State *L );
|
||||
int lcoreGetGestureDetected( lua_State *L );
|
||||
int lcoreGetGestureHoldDuration( lua_State *L );
|
||||
int lcoreGetGestureDragVector( lua_State *L );
|
||||
int lcoreGetGestureDragAngle( lua_State *L );
|
||||
int lcoreGetGesturePinchVector( lua_State *L );
|
||||
int lcoreGetGesturePinchAngle( lua_State *L );
|
||||
int lcoreSetGesturesEnabled( lua_State* L );
|
||||
int lcoreIsGestureDetected( lua_State* L );
|
||||
int lcoreGetGestureDetected( lua_State* L );
|
||||
int lcoreGetGestureHoldDuration( lua_State* L );
|
||||
int lcoreGetGestureDragVector( lua_State* L );
|
||||
int lcoreGetGestureDragAngle( lua_State* L );
|
||||
int lcoreGetGesturePinchVector( lua_State* L );
|
||||
int lcoreGetGesturePinchAngle( lua_State* L );
|
||||
/* Camera2D System functions. */
|
||||
int lcoreCreateCamera2D( lua_State *L );
|
||||
int lcoreSetCamera2DTarget( lua_State *L );
|
||||
int lcoreSetCamera2DOffset( lua_State *L );
|
||||
int lcoreSetCamera2DRotation( lua_State *L );
|
||||
int lcoreSetCamera2DZoom( lua_State *L );
|
||||
int lcoreGetCamera2DTarget( lua_State *L );
|
||||
int lcoreGetCamera2DOffset( lua_State *L );
|
||||
int lcoreGetCamera2DRotation( lua_State *L );
|
||||
int lcoreGetCamera2DZoom( lua_State *L );
|
||||
int lcoreCreateCamera2D( lua_State* L );
|
||||
int lcoreSetCamera2DTarget( lua_State* L );
|
||||
int lcoreSetCamera2DOffset( lua_State* L );
|
||||
int lcoreSetCamera2DRotation( lua_State* L );
|
||||
int lcoreSetCamera2DZoom( lua_State* L );
|
||||
int lcoreGetCamera2DTarget( lua_State* L );
|
||||
int lcoreGetCamera2DOffset( lua_State* L );
|
||||
int lcoreGetCamera2DRotation( lua_State* L );
|
||||
int lcoreGetCamera2DZoom( lua_State* L );
|
||||
/* Camera3D System functions. */
|
||||
int lcoreCreateCamera3D( lua_State *L );
|
||||
int lcoreSetCamera3DPosition( lua_State *L );
|
||||
int lcoreSetCamera3DTarget( lua_State *L );
|
||||
int lcoreSetCamera3DUp( lua_State *L );
|
||||
int lcoreSetCamera3DFovy( lua_State *L );
|
||||
int lcoreSetCamera3DProjection( lua_State *L );
|
||||
int lcoreGetCamera3DPosition( lua_State *L );
|
||||
int lcoreGetCamera3DTarget( lua_State *L );
|
||||
int lcoreGetCamera3DUp( lua_State *L );
|
||||
int lcoreGetCamera3DFovy( lua_State *L );
|
||||
int lcoreGetCamera3DProjection( lua_State *L );
|
||||
int lcoreGetCamera3DForward( lua_State *L );
|
||||
int lcoreGetCamera3DUpNormalized( lua_State *L );
|
||||
int lcoreGetCamera3DRight( lua_State *L );
|
||||
int lcoreCamera3DMoveForward( lua_State *L );
|
||||
int lcoreCamera3DMoveUp( lua_State *L );
|
||||
int lcoreCamera3DMoveRight( lua_State *L );
|
||||
int lcoreCamera3DMoveToTarget( lua_State *L );
|
||||
int lcoreCamera3DYaw( lua_State *L );
|
||||
int lcoreCamera3DPitch( lua_State *L );
|
||||
int lcoreCamera3DRoll( lua_State *L );
|
||||
int lcoreGetCamera3DViewMatrix( lua_State *L );
|
||||
int lcoreGetCamera3DProjectionMatrix( lua_State *L );
|
||||
int lcoreUpdateCamera3D( lua_State *L );
|
||||
int lcoreUpdateCamera3DPro( lua_State *L );
|
||||
int lcoreCreateCamera3D( lua_State* L );
|
||||
int lcoreSetCamera3DPosition( lua_State* L );
|
||||
int lcoreSetCamera3DTarget( lua_State* L );
|
||||
int lcoreSetCamera3DUp( lua_State* L );
|
||||
int lcoreSetCamera3DFovy( lua_State* L );
|
||||
int lcoreSetCamera3DProjection( lua_State* L );
|
||||
int lcoreGetCamera3DPosition( lua_State* L );
|
||||
int lcoreGetCamera3DTarget( lua_State* L );
|
||||
int lcoreGetCamera3DUp( lua_State* L );
|
||||
int lcoreGetCamera3DFovy( lua_State* L );
|
||||
int lcoreGetCamera3DProjection( lua_State* L );
|
||||
int lcoreGetCamera3DForward( lua_State* L );
|
||||
int lcoreGetCamera3DUpNormalized( lua_State* L );
|
||||
int lcoreGetCamera3DRight( lua_State* L );
|
||||
int lcoreCamera3DMoveForward( lua_State* L );
|
||||
int lcoreCamera3DMoveUp( lua_State* L );
|
||||
int lcoreCamera3DMoveRight( lua_State* L );
|
||||
int lcoreCamera3DMoveToTarget( lua_State* L );
|
||||
int lcoreCamera3DYaw( lua_State* L );
|
||||
int lcoreCamera3DPitch( lua_State* L );
|
||||
int lcoreCamera3DRoll( lua_State* L );
|
||||
int lcoreGetCamera3DViewMatrix( lua_State* L );
|
||||
int lcoreGetCamera3DProjectionMatrix( lua_State* L );
|
||||
int lcoreUpdateCamera3D( lua_State* L );
|
||||
int lcoreUpdateCamera3DPro( lua_State* L );
|
||||
/* Buffer management functions. */
|
||||
int lcoreLoadBuffer( lua_State *L );
|
||||
int lcoreLoadBufferFromFile( lua_State *L );
|
||||
int lcoreLoadBufferFromString( lua_State *L );
|
||||
int lcoreUnloadBuffer( lua_State *L );
|
||||
int lcoreGetBufferData( lua_State *L );
|
||||
int lcoreGetBufferType( lua_State *L );
|
||||
int lcoreGetBufferSize( lua_State *L );
|
||||
int lcoreGetBufferElementSize( lua_State *L );
|
||||
int lcoreGetBufferLength( lua_State *L );
|
||||
int lcoreExportBuffer( lua_State *L );
|
||||
int lcoreLoadBuffer( lua_State* L );
|
||||
int lcoreLoadBufferFromFile( lua_State* L );
|
||||
int lcoreLoadBufferFromString( lua_State* L );
|
||||
int lcoreUnloadBuffer( lua_State* L );
|
||||
int lcoreGetBufferData( lua_State* L );
|
||||
int lcoreGetBufferType( lua_State* L );
|
||||
int lcoreGetBufferSize( lua_State* L );
|
||||
int lcoreGetBufferElementSize( lua_State* L );
|
||||
int lcoreGetBufferLength( lua_State* L );
|
||||
int lcoreExportBuffer( lua_State* L );
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
/* Framebuffer management. */
|
||||
int lglBlitFramebuffer( lua_State *L );
|
||||
int lglBlitFramebuffer( lua_State* L );
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
/* Light management functions. */
|
||||
int llightsCreateLight( lua_State *L );
|
||||
int llightsUpdateLightValues( lua_State *L );
|
||||
int llightsSetLightType( lua_State *L );
|
||||
int llightsSetLightPosition( lua_State *L );
|
||||
int llightsSetLightTarget( lua_State *L );
|
||||
int llightsSetLightColor( lua_State *L );
|
||||
int llightsSetLightEnabled( lua_State *L );
|
||||
int llightsGetLightType( lua_State *L );
|
||||
int llightsGetLightPosition( lua_State *L );
|
||||
int llightsGetLightTarget( lua_State *L );
|
||||
int llightsGetLightColor( lua_State *L );
|
||||
int llightsIsLightEnabled( lua_State *L );
|
||||
int llightsCreateLight( lua_State* L );
|
||||
int llightsUpdateLightValues( lua_State* L );
|
||||
int llightsSetLightType( lua_State* L );
|
||||
int llightsSetLightPosition( lua_State* L );
|
||||
int llightsSetLightTarget( lua_State* L );
|
||||
int llightsSetLightColor( lua_State* L );
|
||||
int llightsSetLightEnabled( lua_State* L );
|
||||
int llightsGetLightType( lua_State* L );
|
||||
int llightsGetLightPosition( lua_State* L );
|
||||
int llightsGetLightTarget( lua_State* L );
|
||||
int llightsGetLightColor( lua_State* L );
|
||||
int llightsIsLightEnabled( lua_State* L );
|
||||
|
||||
278
include/lrlgl.h
278
include/lrlgl.h
@@ -1,158 +1,158 @@
|
||||
#pragma once
|
||||
|
||||
/* Matrix operations */
|
||||
int lrlglMatrixMode( lua_State *L );
|
||||
int lrlglPushMatrix( lua_State *L );
|
||||
int lrlglPopMatrix( lua_State *L );
|
||||
int lrlglLoadIdentity( lua_State *L );
|
||||
int lrlglTranslatef( lua_State *L );
|
||||
int lrlglRotatef( lua_State *L );
|
||||
int lrlglScalef( lua_State *L );
|
||||
int lrlglMultMatrixf( lua_State *L );
|
||||
int lrlglFrustum( lua_State *L );
|
||||
int lrlglOrtho( lua_State *L );
|
||||
int lrlglViewport( lua_State *L );
|
||||
int lrlglMatrixMode( lua_State* L );
|
||||
int lrlglPushMatrix( lua_State* L );
|
||||
int lrlglPopMatrix( lua_State* L );
|
||||
int lrlglLoadIdentity( lua_State* L );
|
||||
int lrlglTranslatef( lua_State* L );
|
||||
int lrlglRotatef( lua_State* L );
|
||||
int lrlglScalef( lua_State* L );
|
||||
int lrlglMultMatrixf( lua_State* L );
|
||||
int lrlglFrustum( lua_State* L );
|
||||
int lrlglOrtho( lua_State* L );
|
||||
int lrlglViewport( lua_State* L );
|
||||
/* Vertex level operations */
|
||||
int lrlglBegin( lua_State *L );
|
||||
int lrlglEnd( lua_State *L );
|
||||
int lrlglVertex2f( lua_State *L );
|
||||
int lrlglVertex3f( lua_State *L );
|
||||
int lrlglTexCoord2f( lua_State *L );
|
||||
int lrlglNormal3f( lua_State *L );
|
||||
int lrlglColor4ub( lua_State *L );
|
||||
int lrlglColor3f( lua_State *L );
|
||||
int lrlglColor4f( lua_State *L );
|
||||
int lrlglBegin( lua_State* L );
|
||||
int lrlglEnd( lua_State* L );
|
||||
int lrlglVertex2f( lua_State* L );
|
||||
int lrlglVertex3f( lua_State* L );
|
||||
int lrlglTexCoord2f( lua_State* L );
|
||||
int lrlglNormal3f( lua_State* L );
|
||||
int lrlglColor4ub( lua_State* L );
|
||||
int lrlglColor3f( lua_State* L );
|
||||
int lrlglColor4f( lua_State* L );
|
||||
/* Vertex buffers state */
|
||||
int lrlglEnableVertexArray( lua_State *L );
|
||||
int lrlglDisableVertexArray( lua_State *L );
|
||||
int lrlglEnableVertexBuffer( lua_State *L );
|
||||
int lrlglDisableVertexBuffer( lua_State *L );
|
||||
int lrlglEnableVertexBufferElement( lua_State *L );
|
||||
int lrlglDisableVertexBufferElement( lua_State *L );
|
||||
int lrlglEnableVertexAttribute( lua_State *L );
|
||||
int lrlglDisableVertexAttribute( lua_State *L );
|
||||
int lrlglEnableVertexArray( lua_State* L );
|
||||
int lrlglDisableVertexArray( lua_State* L );
|
||||
int lrlglEnableVertexBuffer( lua_State* L );
|
||||
int lrlglDisableVertexBuffer( lua_State* L );
|
||||
int lrlglEnableVertexBufferElement( lua_State* L );
|
||||
int lrlglDisableVertexBufferElement( lua_State* L );
|
||||
int lrlglEnableVertexAttribute( lua_State* L );
|
||||
int lrlglDisableVertexAttribute( lua_State* L );
|
||||
/* Textures state */
|
||||
int lrlglActiveTextureSlot( lua_State *L );
|
||||
int lrlglEnableTexture( lua_State *L );
|
||||
int lrlglDisableTexture( lua_State *L );
|
||||
int lrlglEnableTextureCubemap( lua_State *L );
|
||||
int lrlglDisableTextureCubemap( lua_State *L );
|
||||
int lrlglTextureParameters( lua_State *L );
|
||||
int lrlglCubemapParameters( lua_State *L );
|
||||
int lrlglActiveTextureSlot( lua_State* L );
|
||||
int lrlglEnableTexture( lua_State* L );
|
||||
int lrlglDisableTexture( lua_State* L );
|
||||
int lrlglEnableTextureCubemap( lua_State* L );
|
||||
int lrlglDisableTextureCubemap( lua_State* L );
|
||||
int lrlglTextureParameters( lua_State* L );
|
||||
int lrlglCubemapParameters( lua_State* L );
|
||||
/* Shader state. */
|
||||
int lrlglEnableShader( lua_State *L );
|
||||
int lrlglDisableShader( lua_State *L );
|
||||
int lrlglEnableShader( lua_State* L );
|
||||
int lrlglDisableShader( lua_State* L );
|
||||
/* Framebuffer state. */
|
||||
int lrlglEnableFramebuffer( lua_State *L );
|
||||
int lrlglDisableFramebuffer( lua_State *L );
|
||||
int lrlglActiveDrawBuffers( lua_State *L );
|
||||
int lrlglEnableFramebuffer( lua_State* L );
|
||||
int lrlglDisableFramebuffer( lua_State* L );
|
||||
int lrlglActiveDrawBuffers( lua_State* L );
|
||||
/* General render state. */
|
||||
int lrlglEnableColorBlend( lua_State *L );
|
||||
int lrlglDisableColorBlend( lua_State *L );
|
||||
int lrlglEnableDepthTest( lua_State *L );
|
||||
int lrlglDisableDepthTest( lua_State *L );
|
||||
int lrlglEnableDepthMask( lua_State *L );
|
||||
int lrlglDisableDepthMask( lua_State *L );
|
||||
int lrlglEnableBackfaceCulling( lua_State *L );
|
||||
int lrlglDisableBackfaceCulling( lua_State *L );
|
||||
int lrlglSetCullFace( lua_State *L );
|
||||
int lrlglEnableScissorTest( lua_State *L );
|
||||
int lrlglDisableScissorTest( lua_State *L );
|
||||
int lrlglScissor( lua_State *L );
|
||||
int lrlglEnableWireMode( lua_State *L );
|
||||
int lrlglDisableWireMode( lua_State *L );
|
||||
int lrlglSetLineWidth( lua_State *L );
|
||||
int lrlglGetLineWidth( lua_State *L );
|
||||
int lrlglEnableSmoothLines( lua_State *L );
|
||||
int lrlglDisableSmoothLines( lua_State *L );
|
||||
int lrlglEnableStereoRender( lua_State *L );
|
||||
int lrlglDisableStereoRender( lua_State *L );
|
||||
int lrlglIsStereoRenderEnabled( lua_State *L );
|
||||
int lrlglClearColor( lua_State *L );
|
||||
int lrlglClearScreenBuffers( lua_State *L );
|
||||
int lrlglCheckErrors( lua_State *L );
|
||||
int lrlglSetBlendMode( lua_State *L );
|
||||
int lrlglSetBlendFactors( lua_State *L );
|
||||
int lrlglSetBlendFactorsSeparate( lua_State *L );
|
||||
int lrlglEnableColorBlend( lua_State* L );
|
||||
int lrlglDisableColorBlend( lua_State* L );
|
||||
int lrlglEnableDepthTest( lua_State* L );
|
||||
int lrlglDisableDepthTest( lua_State* L );
|
||||
int lrlglEnableDepthMask( lua_State* L );
|
||||
int lrlglDisableDepthMask( lua_State* L );
|
||||
int lrlglEnableBackfaceCulling( lua_State* L );
|
||||
int lrlglDisableBackfaceCulling( lua_State* L );
|
||||
int lrlglSetCullFace( lua_State* L );
|
||||
int lrlglEnableScissorTest( lua_State* L );
|
||||
int lrlglDisableScissorTest( lua_State* L );
|
||||
int lrlglScissor( lua_State* L );
|
||||
int lrlglEnableWireMode( lua_State* L );
|
||||
int lrlglDisableWireMode( lua_State* L );
|
||||
int lrlglSetLineWidth( lua_State* L );
|
||||
int lrlglGetLineWidth( lua_State* L );
|
||||
int lrlglEnableSmoothLines( lua_State* L );
|
||||
int lrlglDisableSmoothLines( lua_State* L );
|
||||
int lrlglEnableStereoRender( lua_State* L );
|
||||
int lrlglDisableStereoRender( lua_State* L );
|
||||
int lrlglIsStereoRenderEnabled( lua_State* L );
|
||||
int lrlglClearColor( lua_State* L );
|
||||
int lrlglClearScreenBuffers( lua_State* L );
|
||||
int lrlglCheckErrors( lua_State* L );
|
||||
int lrlglSetBlendMode( lua_State* L );
|
||||
int lrlglSetBlendFactors( lua_State* L );
|
||||
int lrlglSetBlendFactorsSeparate( lua_State* L );
|
||||
/* Initialization functions */
|
||||
int lrlglGetVersion( lua_State *L );
|
||||
int lrlglSetFramebufferWidth( lua_State *L );
|
||||
int lrlglGetFramebufferWidth( lua_State *L );
|
||||
int lrlglSetFramebufferHeight( lua_State *L );
|
||||
int lrlglGetFramebufferHeight( lua_State *L );
|
||||
int lrlglGetTextureIdDefault( lua_State *L );
|
||||
int lrlglGetShaderIdDefault( lua_State *L );
|
||||
int lrlglGetShaderLocsDefault( lua_State *L );
|
||||
int lrlglGetVersion( lua_State* L );
|
||||
int lrlglSetFramebufferWidth( lua_State* L );
|
||||
int lrlglGetFramebufferWidth( lua_State* L );
|
||||
int lrlglSetFramebufferHeight( lua_State* L );
|
||||
int lrlglGetFramebufferHeight( lua_State* L );
|
||||
int lrlglGetTextureIdDefault( lua_State* L );
|
||||
int lrlglGetShaderIdDefault( lua_State* L );
|
||||
int lrlglGetShaderLocsDefault( lua_State* L );
|
||||
/* Render batch management */
|
||||
int lrlglLoadRenderBatch( lua_State *L );
|
||||
int lrlglUnloadRenderBatch( lua_State *L );
|
||||
int lrlglDrawRenderBatch( lua_State *L );
|
||||
int lrlglSetRenderBatchActive( lua_State *L );
|
||||
int lrlglDrawRenderBatchActive( lua_State *L );
|
||||
int lrlglCheckRenderBatchLimit( lua_State *L );
|
||||
int lrlglSetTexture( lua_State *L );
|
||||
int lrlglLoadRenderBatch( lua_State* L );
|
||||
int lrlglUnloadRenderBatch( lua_State* L );
|
||||
int lrlglDrawRenderBatch( lua_State* L );
|
||||
int lrlglSetRenderBatchActive( lua_State* L );
|
||||
int lrlglDrawRenderBatchActive( lua_State* L );
|
||||
int lrlglCheckRenderBatchLimit( lua_State* L );
|
||||
int lrlglSetTexture( lua_State* L );
|
||||
/* Vertex buffers management */
|
||||
int lrlglLoadVertexArray( lua_State *L );
|
||||
int lrlglLoadVertexBuffer( lua_State *L );
|
||||
int lrlglLoadVertexBufferElement( lua_State *L );
|
||||
int lrlglUpdateVertexBuffer( lua_State *L );
|
||||
int lrlglUpdateVertexBufferElements( lua_State *L );
|
||||
int lrlglUnloadVertexArray( lua_State *L );
|
||||
int lrlglUnloadVertexBuffer( lua_State *L );
|
||||
int lrlglSetVertexAttribute( lua_State *L );
|
||||
int lrlglSetVertexAttributeDivisor( lua_State *L );
|
||||
int lrlglSetVertexAttributeDefault( lua_State *L );
|
||||
int lrlglDrawVertexArray( lua_State *L );
|
||||
int lrlglDrawVertexArrayElements( lua_State *L );
|
||||
int lrlglDrawVertexArrayInstanced( lua_State *L );
|
||||
int lrlglDrawVertexArrayElementsInstanced( lua_State *L );
|
||||
int lrlglLoadVertexArray( lua_State* L );
|
||||
int lrlglLoadVertexBuffer( lua_State* L );
|
||||
int lrlglLoadVertexBufferElement( lua_State* L );
|
||||
int lrlglUpdateVertexBuffer( lua_State* L );
|
||||
int lrlglUpdateVertexBufferElements( lua_State* L );
|
||||
int lrlglUnloadVertexArray( lua_State* L );
|
||||
int lrlglUnloadVertexBuffer( lua_State* L );
|
||||
int lrlglSetVertexAttribute( lua_State* L );
|
||||
int lrlglSetVertexAttributeDivisor( lua_State* L );
|
||||
int lrlglSetVertexAttributeDefault( lua_State* L );
|
||||
int lrlglDrawVertexArray( lua_State* L );
|
||||
int lrlglDrawVertexArrayElements( lua_State* L );
|
||||
int lrlglDrawVertexArrayInstanced( lua_State* L );
|
||||
int lrlglDrawVertexArrayElementsInstanced( lua_State* L );
|
||||
/* Textures management */
|
||||
int lrlglLoadTexture( lua_State *L );
|
||||
int lrlglLoadTextureDepth( lua_State *L );
|
||||
int lrlglLoadTextureCubemap( lua_State *L );
|
||||
int lrlglUpdateTexture( lua_State *L );
|
||||
int lrlglGetGlTextureFormats( lua_State *L );
|
||||
int lrlglGetPixelFormatName( lua_State *L );
|
||||
int lrlglUnloadTexture( lua_State *L );
|
||||
int lrlglGenTextureMipmaps( lua_State *L );
|
||||
int lrlglReadTexturePixels( lua_State *L );
|
||||
int lrlglReadScreenPixels( lua_State *L );
|
||||
int lrlglLoadTexture( lua_State* L );
|
||||
int lrlglLoadTextureDepth( lua_State* L );
|
||||
int lrlglLoadTextureCubemap( lua_State* L );
|
||||
int lrlglUpdateTexture( lua_State* L );
|
||||
int lrlglGetGlTextureFormats( lua_State* L );
|
||||
int lrlglGetPixelFormatName( lua_State* L );
|
||||
int lrlglUnloadTexture( lua_State* L );
|
||||
int lrlglGenTextureMipmaps( lua_State* L );
|
||||
int lrlglReadTexturePixels( lua_State* L );
|
||||
int lrlglReadScreenPixels( lua_State* L );
|
||||
/* Framebuffer management (fbo) */
|
||||
int lrlglLoadFramebuffer( lua_State *L );
|
||||
int lrlglFramebufferAttach( lua_State *L );
|
||||
int lrlglFramebufferComplete( lua_State *L );
|
||||
int lrlglUnloadFramebuffer( lua_State *L );
|
||||
int lrlglLoadFramebuffer( lua_State* L );
|
||||
int lrlglFramebufferAttach( lua_State* L );
|
||||
int lrlglFramebufferComplete( lua_State* L );
|
||||
int lrlglUnloadFramebuffer( lua_State* L );
|
||||
/* Shaders management */
|
||||
int lrlglLoadShaderCode( lua_State *L );
|
||||
int lrlglCompileShader( lua_State *L );
|
||||
int lrlglLoadShaderProgram( lua_State *L );
|
||||
int lrlglUnloadShaderProgram( lua_State *L );
|
||||
int lrlglGetLocationUniform( lua_State *L );
|
||||
int lrlglGetLocationAttrib( lua_State *L );
|
||||
int lrlglSetUniform( lua_State *L );
|
||||
int lrlglSetUniformMatrix( lua_State *L );
|
||||
int lrlglSetUniformSampler( lua_State *L );
|
||||
int lrlglSetShader( lua_State *L );
|
||||
int lrlglLoadShaderCode( lua_State* L );
|
||||
int lrlglCompileShader( lua_State* L );
|
||||
int lrlglLoadShaderProgram( lua_State* L );
|
||||
int lrlglUnloadShaderProgram( lua_State* L );
|
||||
int lrlglGetLocationUniform( lua_State* L );
|
||||
int lrlglGetLocationAttrib( lua_State* L );
|
||||
int lrlglSetUniform( lua_State* L );
|
||||
int lrlglSetUniformMatrix( lua_State* L );
|
||||
int lrlglSetUniformSampler( lua_State* L );
|
||||
int lrlglSetShader( lua_State* L );
|
||||
/* Compute shader management */
|
||||
int lrlglLoadComputeShaderProgram( lua_State *L );
|
||||
int lrlglComputeShaderDispatch( lua_State *L );
|
||||
int lrlglLoadComputeShaderProgram( lua_State* L );
|
||||
int lrlglComputeShaderDispatch( lua_State* L );
|
||||
/* Shader buffer storage object management (ssbo) */
|
||||
int lrlglLoadShaderBuffer( lua_State *L );
|
||||
int lrlglUnloadShaderBuffer( lua_State *L );
|
||||
int lrlglUpdateShaderBuffer( lua_State *L );
|
||||
int lrlglBindShaderBuffer( lua_State *L );
|
||||
int lrlglReadShaderBuffer( lua_State *L );
|
||||
int lrlglCopyShaderBuffer( lua_State *L );
|
||||
int lrlglGetShaderBufferSize( lua_State *L );
|
||||
int lrlglLoadShaderBuffer( lua_State* L );
|
||||
int lrlglUnloadShaderBuffer( lua_State* L );
|
||||
int lrlglUpdateShaderBuffer( lua_State* L );
|
||||
int lrlglBindShaderBuffer( lua_State* L );
|
||||
int lrlglReadShaderBuffer( lua_State* L );
|
||||
int lrlglCopyShaderBuffer( lua_State* L );
|
||||
int lrlglGetShaderBufferSize( lua_State* L );
|
||||
/* Buffer management */
|
||||
int lrlglBindImageTexture( lua_State *L );
|
||||
int lrlglBindImageTexture( lua_State* L );
|
||||
/* Matrix state management */
|
||||
int lrlglGetMatrixModelview( lua_State *L );
|
||||
int lrlglGetMatrixProjection( lua_State *L );
|
||||
int lrlglGetMatrixTransform( lua_State *L );
|
||||
int lrlglGetMatrixProjectionStereo( lua_State *L );
|
||||
int lrlglGetMatrixViewOffsetStereo( lua_State *L );
|
||||
int lrlglSetMatrixProjection( lua_State *L );
|
||||
int lrlglSetMatrixModelview( lua_State *L );
|
||||
int lrlglSetMatrixProjectionStereo( lua_State *L );
|
||||
int lrlglSetMatrixViewOffsetStereo( lua_State *L );
|
||||
int lrlglGetMatrixModelview( lua_State* L );
|
||||
int lrlglGetMatrixProjection( lua_State* L );
|
||||
int lrlglGetMatrixTransform( lua_State* L );
|
||||
int lrlglGetMatrixProjectionStereo( lua_State* L );
|
||||
int lrlglGetMatrixViewOffsetStereo( lua_State* L );
|
||||
int lrlglSetMatrixProjection( lua_State* L );
|
||||
int lrlglSetMatrixModelview( lua_State* L );
|
||||
int lrlglSetMatrixProjectionStereo( lua_State* L );
|
||||
int lrlglSetMatrixViewOffsetStereo( lua_State* L );
|
||||
|
||||
@@ -14,18 +14,18 @@ enum BufferType {
|
||||
typedef struct {
|
||||
int type;
|
||||
size_t size;
|
||||
void *data;
|
||||
void* data;
|
||||
} Buffer;
|
||||
|
||||
/* Global assing functions. */
|
||||
void assignGlobalInt( int value, const char *name );
|
||||
void assignGlobalFloat( float value, const char *name );
|
||||
void assignGlobalDouble( double value, const char *name );
|
||||
void assignGlobalColor( Color color, const char *name );
|
||||
void assingGlobalFunction( const char *name, int ( *functionPtr )( lua_State* ) );
|
||||
void assignGlobalInt( int value, const char* name );
|
||||
void assignGlobalFloat( float value, const char* name );
|
||||
void assignGlobalDouble( double value, const char* name );
|
||||
void assignGlobalColor( Color color, const char* name );
|
||||
void assingGlobalFunction( const char* name, int ( *functionPtr )( lua_State* ) );
|
||||
|
||||
bool luaInit( int argn, const char **argc );
|
||||
int luaTraceback( lua_State *L );
|
||||
bool luaInit( int argn, const char** argc );
|
||||
int luaTraceback( lua_State* L );
|
||||
bool luaCallMain();
|
||||
void luaCallUpdate();
|
||||
void luaCallDraw();
|
||||
@@ -34,67 +34,67 @@ void luaRegister();
|
||||
void platformDefineGlobals();
|
||||
void luaPlatformRegister();
|
||||
/* Lua get types. */
|
||||
bool uluaGetBoolean( lua_State *L, int index );
|
||||
Color uluaGetColor( lua_State *L, int index );
|
||||
Vector2 uluaGetVector2( lua_State *L, int index );
|
||||
Vector3 uluaGetVector3( lua_State *L, int index );
|
||||
Vector4 uluaGetVector4( lua_State *L, int index );
|
||||
Rectangle uluaGetRectangle( lua_State *L, int index );
|
||||
Quaternion uluaGetQuaternion( lua_State *L, int index );
|
||||
Matrix uluaGetMatrix( lua_State *L, int index );
|
||||
BoundingBox uluaGetBoundingBox( lua_State *L, int index );
|
||||
Ray uluaGetRay( lua_State *L, int index );
|
||||
NPatchInfo uluaGetNPatchInfo( lua_State *L, int index );
|
||||
BoneInfo uluaGetBoneInfo( lua_State *L, int index );
|
||||
Transform uluaGetTransform( lua_State *L, int index );
|
||||
Buffer* uluaGetBuffer( lua_State *L, int index );
|
||||
Image* uluaGetImage( lua_State *L, int index );
|
||||
Texture* uluaGetTexture( lua_State *L, int index );
|
||||
RenderTexture* uluaGetRenderTexture( lua_State *L, int index );
|
||||
Shader* uluaGetShader( lua_State *L, int index );
|
||||
Mesh* uluaGetMesh( lua_State *L, int index );
|
||||
Camera2D* uluaGetCamera2D( lua_State *L, int index );
|
||||
Camera3D* uluaGetCamera3D( lua_State *L, int index );
|
||||
Font* uluaGetFont( lua_State *L, int index );
|
||||
GlyphInfo* uluaGetGlyphInfo( lua_State *L, int index );
|
||||
Wave* uluaGetWave( lua_State *L, int index );
|
||||
Sound* uluaGetSound( lua_State *L, int index );
|
||||
Music* uluaGetMusic( lua_State *L, int index );
|
||||
Light* uluaGetLight( lua_State *L, int index );
|
||||
Material* uluaGetMaterial( lua_State *L, int index );
|
||||
Model* uluaGetModel( lua_State *L, int index );
|
||||
ModelAnimation* uluaGetModelAnimation( lua_State *L, int index );
|
||||
rlRenderBatch* uluaGetRLRenderBatch( lua_State *L, int index );
|
||||
bool uluaGetBoolean( lua_State* L, int index );
|
||||
Color uluaGetColor( lua_State* L, int index );
|
||||
Vector2 uluaGetVector2( lua_State* L, int index );
|
||||
Vector3 uluaGetVector3( lua_State* L, int index );
|
||||
Vector4 uluaGetVector4( lua_State* L, int index );
|
||||
Rectangle uluaGetRectangle( lua_State* L, int index );
|
||||
Quaternion uluaGetQuaternion( lua_State* L, int index );
|
||||
Matrix uluaGetMatrix( lua_State* L, int index );
|
||||
BoundingBox uluaGetBoundingBox( lua_State* L, int index );
|
||||
Ray uluaGetRay( lua_State* L, int index );
|
||||
NPatchInfo uluaGetNPatchInfo( lua_State* L, int index );
|
||||
BoneInfo uluaGetBoneInfo( lua_State* L, int index );
|
||||
Transform uluaGetTransform( lua_State* L, int index );
|
||||
Buffer* uluaGetBuffer( lua_State* L, int index );
|
||||
Image* uluaGetImage( lua_State* L, int index );
|
||||
Texture* uluaGetTexture( lua_State* L, int index );
|
||||
RenderTexture* uluaGetRenderTexture( lua_State* L, int index );
|
||||
Shader* uluaGetShader( lua_State* L, int index );
|
||||
Mesh* uluaGetMesh( lua_State* L, int index );
|
||||
Camera2D* uluaGetCamera2D( lua_State* L, int index );
|
||||
Camera3D* uluaGetCamera3D( lua_State* L, int index );
|
||||
Font* uluaGetFont( lua_State* L, int index );
|
||||
GlyphInfo* uluaGetGlyphInfo( lua_State* L, int index );
|
||||
Wave* uluaGetWave( lua_State* L, int index );
|
||||
Sound* uluaGetSound( lua_State* L, int index );
|
||||
Music* uluaGetMusic( lua_State* L, int index );
|
||||
Light* uluaGetLight( lua_State* L, int index );
|
||||
Material* uluaGetMaterial( lua_State* L, int index );
|
||||
Model* uluaGetModel( lua_State* L, int index );
|
||||
ModelAnimation* uluaGetModelAnimation( lua_State* L, int index );
|
||||
rlRenderBatch* uluaGetRLRenderBatch( lua_State* L, int index );
|
||||
/* Lua push types. */
|
||||
void uluaPushColor( lua_State *L, Color color );
|
||||
void uluaPushVector2( lua_State *L, Vector2 vector );
|
||||
void uluaPushVector3( lua_State *L, Vector3 vector );
|
||||
void uluaPushVector4( lua_State *L, Vector4 vector );
|
||||
void uluaPushRectangle( lua_State *L, Rectangle rect );
|
||||
void uluaPushQuaternion( lua_State *L, Quaternion quaternion );
|
||||
void uluaPushMatrix( lua_State *L, Matrix matrix );
|
||||
void uluaPushRay( lua_State *L, Ray ray );
|
||||
void uluaPushRayCollision( lua_State *L, RayCollision rayCol );
|
||||
void uluaPushBoundingBox( lua_State *L, BoundingBox box );
|
||||
void uluaPushBoneInfo( lua_State *L, BoneInfo boneInfo );
|
||||
void uluaPushTransform( lua_State *L, Transform transform );
|
||||
void uluaPushBuffer( lua_State *L, Buffer buffer );
|
||||
void uluaPushImage( lua_State *L, Image image );
|
||||
void uluaPushTexture( lua_State *L, Texture texture );
|
||||
void uluaPushRenderTexture( lua_State *L, RenderTexture renderTexture );
|
||||
void uluaPushCamera2D( lua_State *L, Camera2D camera );
|
||||
void uluaPushCamera3D( lua_State *L, Camera3D camera );
|
||||
void uluaPushShader( lua_State *L, Shader shader );
|
||||
void uluaPushFont( lua_State *L, Font font );
|
||||
void uluaPushGlyphInfo( lua_State *L, GlyphInfo glyph );
|
||||
void uluaPushWave( lua_State *L, Wave wave );
|
||||
void uluaPushSound( lua_State *L, Sound sound );
|
||||
void uluaPushMusic( lua_State *L, Music music );
|
||||
void uluaPushLight( lua_State *L, Light light );
|
||||
void uluaPushMaterial( lua_State *L, Material material );
|
||||
void uluaPushMesh( lua_State *L, Mesh mesh );
|
||||
void uluaPushModel( lua_State *L, Model model );
|
||||
void uluaPushModelAnimation( lua_State *L, ModelAnimation modelAnimation );
|
||||
void uluaPushRLRenderBatch( lua_State *L, rlRenderBatch renderBatch );
|
||||
void uluaPushColor( lua_State* L, Color color );
|
||||
void uluaPushVector2( lua_State* L, Vector2 vector );
|
||||
void uluaPushVector3( lua_State* L, Vector3 vector );
|
||||
void uluaPushVector4( lua_State* L, Vector4 vector );
|
||||
void uluaPushRectangle( lua_State* L, Rectangle rect );
|
||||
void uluaPushQuaternion( lua_State* L, Quaternion quaternion );
|
||||
void uluaPushMatrix( lua_State* L, Matrix matrix );
|
||||
void uluaPushRay( lua_State* L, Ray ray );
|
||||
void uluaPushRayCollision( lua_State* L, RayCollision rayCol );
|
||||
void uluaPushBoundingBox( lua_State* L, BoundingBox box );
|
||||
void uluaPushBoneInfo( lua_State* L, BoneInfo boneInfo );
|
||||
void uluaPushTransform( lua_State* L, Transform transform );
|
||||
void uluaPushBuffer( lua_State* L, Buffer buffer );
|
||||
void uluaPushImage( lua_State* L, Image image );
|
||||
void uluaPushTexture( lua_State* L, Texture texture );
|
||||
void uluaPushRenderTexture( lua_State* L, RenderTexture renderTexture );
|
||||
void uluaPushCamera2D( lua_State* L, Camera2D camera );
|
||||
void uluaPushCamera3D( lua_State* L, Camera3D camera );
|
||||
void uluaPushShader( lua_State* L, Shader shader );
|
||||
void uluaPushFont( lua_State* L, Font font );
|
||||
void uluaPushGlyphInfo( lua_State* L, GlyphInfo glyph );
|
||||
void uluaPushWave( lua_State* L, Wave wave );
|
||||
void uluaPushSound( lua_State* L, Sound sound );
|
||||
void uluaPushMusic( lua_State* L, Music music );
|
||||
void uluaPushLight( lua_State* L, Light light );
|
||||
void uluaPushMaterial( lua_State* L, Material material );
|
||||
void uluaPushMesh( lua_State* L, Mesh mesh );
|
||||
void uluaPushModel( lua_State* L, Model model );
|
||||
void uluaPushModelAnimation( lua_State* L, ModelAnimation modelAnimation );
|
||||
void uluaPushRLRenderBatch( lua_State* L, rlRenderBatch renderBatch );
|
||||
/* Utils. */
|
||||
int uluaGetTableLen( lua_State *L, int index );
|
||||
int uluaGetTableLen( lua_State* L, int index );
|
||||
|
||||
206
include/models.h
206
include/models.h
@@ -1,118 +1,118 @@
|
||||
#pragma once
|
||||
|
||||
/* Internals. */
|
||||
void unloadMaterial( Material *material );
|
||||
void unloadMaterial( Material* material );
|
||||
/* Deleted from raylib. Need for freeing models. */
|
||||
void DrawBillboardProNoRatio( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint );
|
||||
void DrawBillboardRecNoRatio( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint );
|
||||
|
||||
/* Basic geometric 3D shapes drawing functions. */
|
||||
int lmodelsDrawLine3D( lua_State *L );
|
||||
int lmodelsDrawPoint3D( lua_State *L );
|
||||
int lmodelsDrawCircle3D( lua_State *L );
|
||||
int lmodelsDrawTriangle3D( lua_State *L );
|
||||
int lmodelsDrawCube( lua_State *L );
|
||||
int lmodelsDrawCubeWires( lua_State *L );
|
||||
int lmodelsDrawSphere( lua_State *L );
|
||||
int lmodelsDrawSphereEx( lua_State *L );
|
||||
int lmodelsDrawSphereWires( lua_State *L );
|
||||
int lmodelsDrawCylinder( lua_State *L );
|
||||
int lmodelsDrawCylinderEx( lua_State *L );
|
||||
int lmodelsDrawCylinderWires( lua_State *L );
|
||||
int lmodelsDrawCylinderWiresEx( lua_State *L );
|
||||
int lmodelsDrawCapsule( lua_State *L );
|
||||
int lmodelsDrawCapsuleWires( lua_State *L );
|
||||
int lmodelsDrawPlane( lua_State *L );
|
||||
int lmodelDrawQuad3DTexture( lua_State *L );
|
||||
int lmodelsDrawRay( lua_State *L );
|
||||
int lmodelsDrawGrid( lua_State *L );
|
||||
int lmodelsDrawLine3D( lua_State* L );
|
||||
int lmodelsDrawPoint3D( lua_State* L );
|
||||
int lmodelsDrawCircle3D( lua_State* L );
|
||||
int lmodelsDrawTriangle3D( lua_State* L );
|
||||
int lmodelsDrawCube( lua_State* L );
|
||||
int lmodelsDrawCubeWires( lua_State* L );
|
||||
int lmodelsDrawSphere( lua_State* L );
|
||||
int lmodelsDrawSphereEx( lua_State* L );
|
||||
int lmodelsDrawSphereWires( lua_State* L );
|
||||
int lmodelsDrawCylinder( lua_State* L );
|
||||
int lmodelsDrawCylinderEx( lua_State* L );
|
||||
int lmodelsDrawCylinderWires( lua_State* L );
|
||||
int lmodelsDrawCylinderWiresEx( lua_State* L );
|
||||
int lmodelsDrawCapsule( lua_State* L );
|
||||
int lmodelsDrawCapsuleWires( lua_State* L );
|
||||
int lmodelsDrawPlane( lua_State* L );
|
||||
int lmodelDrawQuad3DTexture( lua_State* L );
|
||||
int lmodelsDrawRay( lua_State* L );
|
||||
int lmodelsDrawGrid( lua_State* L );
|
||||
/* Model management functions. */
|
||||
int lmodelsLoadModel( lua_State *L );
|
||||
int lmodelsLoadModelFromMesh( lua_State *L );
|
||||
int lmodelsIsModelReady( lua_State *L );
|
||||
int lmodelsUnloadModel( lua_State *L );
|
||||
int lmodelsGetModelBoundingBox( lua_State *L );
|
||||
int lmodelsSetModelTransform( lua_State *L );
|
||||
int lmodelsSetModelMesh( lua_State *L );
|
||||
int lmodelsSetModelMaterial( lua_State *L );
|
||||
int lmodelsSetModelMeshMaterial( lua_State *L );
|
||||
int lmodelsSetModelBone( lua_State *L );
|
||||
int lmodelsSetModelBindPose( lua_State *L );
|
||||
int lmodelsGetModelTransform( lua_State *L );
|
||||
int lmodelsGetModelMeshCount( lua_State *L );
|
||||
int lmodelsGetModelMaterialCount( lua_State *L );
|
||||
int lmodelsGetModelMesh( lua_State *L );
|
||||
int lmodelsGetModelMaterial( lua_State *L );
|
||||
int lmodelsGetModelBoneCount( lua_State *L );
|
||||
int lmodelsGetModelBone( lua_State *L );
|
||||
int lmodelsGetModelBindPose( lua_State *L );
|
||||
int lmodelsLoadModel( lua_State* L );
|
||||
int lmodelsLoadModelFromMesh( lua_State* L );
|
||||
int lmodelsIsModelReady( lua_State* L );
|
||||
int lmodelsUnloadModel( lua_State* L );
|
||||
int lmodelsGetModelBoundingBox( lua_State* L );
|
||||
int lmodelsSetModelTransform( lua_State* L );
|
||||
int lmodelsSetModelMesh( lua_State* L );
|
||||
int lmodelsSetModelMaterial( lua_State* L );
|
||||
int lmodelsSetModelMeshMaterial( lua_State* L );
|
||||
int lmodelsSetModelBone( lua_State* L );
|
||||
int lmodelsSetModelBindPose( lua_State* L );
|
||||
int lmodelsGetModelTransform( lua_State* L );
|
||||
int lmodelsGetModelMeshCount( lua_State* L );
|
||||
int lmodelsGetModelMaterialCount( lua_State* L );
|
||||
int lmodelsGetModelMesh( lua_State* L );
|
||||
int lmodelsGetModelMaterial( lua_State* L );
|
||||
int lmodelsGetModelBoneCount( lua_State* L );
|
||||
int lmodelsGetModelBone( lua_State* L );
|
||||
int lmodelsGetModelBindPose( lua_State* L );
|
||||
/* Model drawing functions. */
|
||||
int lmodelsDrawModel( lua_State *L );
|
||||
int lmodelsDrawModelEx( lua_State *L );
|
||||
int lmodelsDrawModelWires( lua_State *L );
|
||||
int lmodelsDrawModelWiresEx( lua_State *L );
|
||||
int lmodelsDrawBoundingBox( lua_State *L );
|
||||
int lmodelsDrawBillboard( lua_State *L );
|
||||
int lmodelsDrawBillboardRec( lua_State *L );
|
||||
int lmodelsDrawBillboardPro( lua_State *L );
|
||||
int lmodelsDrawModel( lua_State* L );
|
||||
int lmodelsDrawModelEx( lua_State* L );
|
||||
int lmodelsDrawModelWires( lua_State* L );
|
||||
int lmodelsDrawModelWiresEx( lua_State* L );
|
||||
int lmodelsDrawBoundingBox( lua_State* L );
|
||||
int lmodelsDrawBillboard( lua_State* L );
|
||||
int lmodelsDrawBillboardRec( lua_State* L );
|
||||
int lmodelsDrawBillboardPro( lua_State* L );
|
||||
/* Mesh management functions. */
|
||||
int lmodelsUpdateMesh( lua_State *L );
|
||||
int lmodelsUnloadMesh( lua_State *L );
|
||||
int lmodelsDrawMesh( lua_State *L );
|
||||
int lmodelsDrawMeshInstanced( lua_State *L );
|
||||
int lmodelsSetMeshColor( lua_State *L );
|
||||
int lmodelsExportMesh( lua_State *L );
|
||||
int lmodelsGetMeshBoundingBox( lua_State *L );
|
||||
int lmodelsGenMeshTangents( lua_State *L );
|
||||
int lmodelsUpdateMesh( lua_State* L );
|
||||
int lmodelsUnloadMesh( lua_State* L );
|
||||
int lmodelsDrawMesh( lua_State* L );
|
||||
int lmodelsDrawMeshInstanced( lua_State* L );
|
||||
int lmodelsSetMeshColor( lua_State* L );
|
||||
int lmodelsExportMesh( lua_State* L );
|
||||
int lmodelsGetMeshBoundingBox( lua_State* L );
|
||||
int lmodelsGenMeshTangents( lua_State* L );
|
||||
/* Mesh generation functions. */
|
||||
int lmodelsGenMeshPoly( lua_State *L );
|
||||
int lmodelsGenMeshPlane( lua_State *L );
|
||||
int lmodelsGenMeshCube( lua_State *L );
|
||||
int lmodelsGenMeshSphere( lua_State *L );
|
||||
int lmodelsGenMeshCylinder( lua_State *L );
|
||||
int lmodelsGenMeshCone( lua_State *L );
|
||||
int lmodelsGenMeshTorus( lua_State *L );
|
||||
int lmodelsGenMeshKnot( lua_State *L );
|
||||
int lmodelsGenMeshHeightmap( lua_State *L );
|
||||
int lmodelsGenMeshCubicmap( lua_State *L );
|
||||
int lmodelsGenMeshCustom( lua_State *L );
|
||||
int lmodelsGenMeshPoly( lua_State* L );
|
||||
int lmodelsGenMeshPlane( lua_State* L );
|
||||
int lmodelsGenMeshCube( lua_State* L );
|
||||
int lmodelsGenMeshSphere( lua_State* L );
|
||||
int lmodelsGenMeshCylinder( lua_State* L );
|
||||
int lmodelsGenMeshCone( lua_State* L );
|
||||
int lmodelsGenMeshTorus( lua_State* L );
|
||||
int lmodelsGenMeshKnot( lua_State* L );
|
||||
int lmodelsGenMeshHeightmap( lua_State* L );
|
||||
int lmodelsGenMeshCubicmap( lua_State* L );
|
||||
int lmodelsGenMeshCustom( lua_State* L );
|
||||
/* Material management functions. */
|
||||
int lmodelsLoadMaterials( lua_State *L );
|
||||
int lmodelsGetMaterialDefault( lua_State *L );
|
||||
int lmodelsLoadMaterialDefault( lua_State *L );
|
||||
int lmodelsCreateMaterial( lua_State *L );
|
||||
int lmodelsIsMaterialReady( lua_State *L );
|
||||
int lmodelsUnloadMaterial( lua_State *L );
|
||||
int lmodelsSetMaterialTexture( lua_State *L );
|
||||
int lmodelsSetMaterialColor( lua_State *L );
|
||||
int lmodelsSetMaterialValue( lua_State *L );
|
||||
int lmodelsSetMaterialShader( lua_State *L );
|
||||
int lmodelsSetMaterialParams( lua_State *L );
|
||||
int lmodelsGetMaterialTexture( lua_State *L );
|
||||
int lmodelsGetMaterialColor( lua_State *L );
|
||||
int lmodelsGetMaterialValue( lua_State *L );
|
||||
int lmodelsGetMaterialShader( lua_State *L );
|
||||
int lmodelsGetMaterialParams( lua_State *L );
|
||||
int lmodelsLoadMaterials( lua_State* L );
|
||||
int lmodelsGetMaterialDefault( lua_State* L );
|
||||
int lmodelsLoadMaterialDefault( lua_State* L );
|
||||
int lmodelsCreateMaterial( lua_State* L );
|
||||
int lmodelsIsMaterialReady( lua_State* L );
|
||||
int lmodelsUnloadMaterial( lua_State* L );
|
||||
int lmodelsSetMaterialTexture( lua_State* L );
|
||||
int lmodelsSetMaterialColor( lua_State* L );
|
||||
int lmodelsSetMaterialValue( lua_State* L );
|
||||
int lmodelsSetMaterialShader( lua_State* L );
|
||||
int lmodelsSetMaterialParams( lua_State* L );
|
||||
int lmodelsGetMaterialTexture( lua_State* L );
|
||||
int lmodelsGetMaterialColor( lua_State* L );
|
||||
int lmodelsGetMaterialValue( lua_State* L );
|
||||
int lmodelsGetMaterialShader( lua_State* L );
|
||||
int lmodelsGetMaterialParams( lua_State* L );
|
||||
/* Model animations management functions. */
|
||||
int lmodelsLoadModelAnimations( lua_State *L );
|
||||
int lmodelsUpdateModelAnimation( lua_State *L );
|
||||
int lmodelsUnloadModelAnimation( lua_State *L );
|
||||
int lmodelsUnloadModelAnimations( lua_State *L );
|
||||
int lmodelsIsModelAnimationValid( lua_State *L );
|
||||
int lmodelsSetModelAnimationBone( lua_State *L );
|
||||
int lmodelsSetModelAnimationFramePose( lua_State *L );
|
||||
int lmodelsSetModelAnimationName( lua_State *L );
|
||||
int lmodelsGetModelAnimationBoneCount( lua_State *L );
|
||||
int lmodelsGetModelAnimationFrameCount( lua_State *L );
|
||||
int lmodelsGetModelAnimationBone( lua_State *L );
|
||||
int lmodelsGetModelAnimationFramePose( lua_State *L );
|
||||
int lmodelsGetModelAnimationName( lua_State *L );
|
||||
int lmodelsLoadModelAnimations( lua_State* L );
|
||||
int lmodelsUpdateModelAnimation( lua_State* L );
|
||||
int lmodelsUnloadModelAnimation( lua_State* L );
|
||||
int lmodelsUnloadModelAnimations( lua_State* L );
|
||||
int lmodelsIsModelAnimationValid( lua_State* L );
|
||||
int lmodelsSetModelAnimationBone( lua_State* L );
|
||||
int lmodelsSetModelAnimationFramePose( lua_State* L );
|
||||
int lmodelsSetModelAnimationName( lua_State* L );
|
||||
int lmodelsGetModelAnimationBoneCount( lua_State* L );
|
||||
int lmodelsGetModelAnimationFrameCount( lua_State* L );
|
||||
int lmodelsGetModelAnimationBone( lua_State* L );
|
||||
int lmodelsGetModelAnimationFramePose( lua_State* L );
|
||||
int lmodelsGetModelAnimationName( lua_State* L );
|
||||
/* Collision detection functions. */
|
||||
int lmodelsCheckCollisionSpheres( lua_State *L );
|
||||
int lmodelsCheckCollisionBoxes( lua_State *L );
|
||||
int lmodelsCheckCollisionBoxSphere( lua_State *L );
|
||||
int lmodelsGetRayCollisionSphere( lua_State *L );
|
||||
int lmodelsGetRayCollisionBox( lua_State *L );
|
||||
int lmodelsGetRayCollisionMesh( lua_State *L );
|
||||
int lmodelsGetRayCollisionTriangle( lua_State *L );
|
||||
int lmodelsGetRayCollisionQuad( lua_State *L );
|
||||
int lmodelsCheckCollisionSpheres( lua_State* L );
|
||||
int lmodelsCheckCollisionBoxes( lua_State* L );
|
||||
int lmodelsCheckCollisionBoxSphere( lua_State* L );
|
||||
int lmodelsGetRayCollisionSphere( lua_State* L );
|
||||
int lmodelsGetRayCollisionBox( lua_State* L );
|
||||
int lmodelsGetRayCollisionMesh( lua_State* L );
|
||||
int lmodelsGetRayCollisionTriangle( lua_State* L );
|
||||
int lmodelsGetRayCollisionQuad( lua_State* L );
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
// typedef struct {
|
||||
// int SDL_eventQueueLen;
|
||||
// SDL_Event **SDL_eventQueue;
|
||||
// SDL_Event** SDL_eventQueue;
|
||||
// } SDL_State;
|
||||
|
||||
// extern SDL_State *SDL_state;
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
/* Linear Easing functions. */
|
||||
int leasingsEaseLinear( lua_State *L );
|
||||
int leasingsEaseLinear( lua_State* L );
|
||||
|
||||
/* Sine Easing functions. */
|
||||
int leasingsEaseSineIn( lua_State *L );
|
||||
int leasingsEaseSineOut( lua_State *L );
|
||||
int leasingsEaseSineInOut( lua_State *L );
|
||||
int leasingsEaseSineIn( lua_State* L );
|
||||
int leasingsEaseSineOut( lua_State* L );
|
||||
int leasingsEaseSineInOut( lua_State* L );
|
||||
|
||||
/* Circular Easing functions. */
|
||||
int leasingsEaseCircIn( lua_State *L );
|
||||
int leasingsEaseCircOut( lua_State *L );
|
||||
int leasingsEaseCircInOut( lua_State *L );
|
||||
int leasingsEaseCircIn( lua_State* L );
|
||||
int leasingsEaseCircOut( lua_State* L );
|
||||
int leasingsEaseCircInOut( lua_State* L );
|
||||
|
||||
/* Cubic Easing functions. */
|
||||
int leasingsEaseCubicIn( lua_State *L );
|
||||
int leasingsEaseCubicOut( lua_State *L );
|
||||
int leasingsEaseCubicInOut( lua_State *L );
|
||||
int leasingsEaseCubicIn( lua_State* L );
|
||||
int leasingsEaseCubicOut( lua_State* L );
|
||||
int leasingsEaseCubicInOut( lua_State* L );
|
||||
|
||||
/* Quadratic Easing functions. */
|
||||
int leasingsEaseQuadIn( lua_State *L );
|
||||
int leasingsEaseQuadOut( lua_State *L );
|
||||
int leasingsEaseQuadInOut( lua_State *L );
|
||||
int leasingsEaseQuadIn( lua_State* L );
|
||||
int leasingsEaseQuadOut( lua_State* L );
|
||||
int leasingsEaseQuadInOut( lua_State* L );
|
||||
|
||||
/* Exponential Easing functions. */
|
||||
int leasingsEaseExpoIn( lua_State *L );
|
||||
int leasingsEaseExpoOut( lua_State *L );
|
||||
int leasingsEaseExpoInOut( lua_State *L );
|
||||
int leasingsEaseExpoIn( lua_State* L );
|
||||
int leasingsEaseExpoOut( lua_State* L );
|
||||
int leasingsEaseExpoInOut( lua_State* L );
|
||||
|
||||
/* Back Easing functions. */
|
||||
int leasingsEaseBackIn( lua_State *L );
|
||||
int leasingsEaseBackOut( lua_State *L );
|
||||
int leasingsEaseBackInOut( lua_State *L );
|
||||
int leasingsEaseBackIn( lua_State* L );
|
||||
int leasingsEaseBackOut( lua_State* L );
|
||||
int leasingsEaseBackInOut( lua_State* L );
|
||||
|
||||
/* Bounce Easing functions. */
|
||||
int leasingsEaseBounceIn( lua_State *L );
|
||||
int leasingsEaseBounceOut( lua_State *L );
|
||||
int leasingsEaseBounceInOut( lua_State *L );
|
||||
int leasingsEaseBounceIn( lua_State* L );
|
||||
int leasingsEaseBounceOut( lua_State* L );
|
||||
int leasingsEaseBounceInOut( lua_State* L );
|
||||
|
||||
/* Elastic Easing functions. */
|
||||
int leasingsEaseElasticIn( lua_State *L );
|
||||
int leasingsEaseElasticOut( lua_State *L );
|
||||
int leasingsEaseElasticInOut( lua_State *L );
|
||||
int leasingsEaseElasticIn( lua_State* L );
|
||||
int leasingsEaseElasticOut( lua_State* L );
|
||||
int leasingsEaseElasticInOut( lua_State* L );
|
||||
|
||||
114
include/rgui.h
114
include/rgui.h
@@ -1,68 +1,68 @@
|
||||
#pragma once
|
||||
|
||||
/* Global gui state control functions. */
|
||||
int lguiGuiEnable( lua_State *L );
|
||||
int lguiGuiDisable( lua_State *L );
|
||||
int lguiGuiLock( lua_State *L );
|
||||
int lguiGuiUnlock( lua_State *L );
|
||||
int lguiGuiIsLocked( lua_State *L );
|
||||
int lguiGuiSetAlpha( lua_State *L );
|
||||
int lguiGuiSetState( lua_State *L );
|
||||
int lguiGuiGetState( lua_State *L );
|
||||
int lguiGuiEnable( lua_State* L );
|
||||
int lguiGuiDisable( lua_State* L );
|
||||
int lguiGuiLock( lua_State* L );
|
||||
int lguiGuiUnlock( lua_State* L );
|
||||
int lguiGuiIsLocked( lua_State* L );
|
||||
int lguiGuiSetAlpha( lua_State* L );
|
||||
int lguiGuiSetState( lua_State* L );
|
||||
int lguiGuiGetState( lua_State* L );
|
||||
/* Font set/get functions. */
|
||||
int lguiGuiSetFont( lua_State *L );
|
||||
int lguiGuiGetFont( lua_State *L );
|
||||
int lguiGuiSetFont( lua_State* L );
|
||||
int lguiGuiGetFont( lua_State* L );
|
||||
/* Style set/get functions. */
|
||||
int lguiGuiSetStyle( lua_State *L );
|
||||
int lguiGuiGetStyle( lua_State *L );
|
||||
int lguiGuiSetStyle( lua_State* L );
|
||||
int lguiGuiGetStyle( lua_State* L );
|
||||
/* Styles loading functions. */
|
||||
int lguiGuiLoadStyle( lua_State *L );
|
||||
int lguiGuiLoadStyleDefault( lua_State *L );
|
||||
int lguiGuiLoadStyle( lua_State* L );
|
||||
int lguiGuiLoadStyleDefault( lua_State* L );
|
||||
/* Tooltips management functions. */
|
||||
int lguiGuiEnableTooltip( lua_State *L );
|
||||
int lguiGuiDisableTooltip( lua_State *L );
|
||||
int lguiGuiSetTooltip( lua_State *L );
|
||||
int lguiGuiEnableTooltip( lua_State* L );
|
||||
int lguiGuiDisableTooltip( lua_State* L );
|
||||
int lguiGuiSetTooltip( lua_State* L );
|
||||
/* Icons functionality. */
|
||||
int lguiGuiIconText( lua_State *L );
|
||||
int lguiGuiSetIconScale( lua_State *L );
|
||||
int lguiGuiGetIcons( lua_State *L );
|
||||
int lguiGuiLoadIcons( lua_State *L );
|
||||
int lguiGuiDrawIcon( lua_State *L );
|
||||
int lguiGuiIconText( lua_State* L );
|
||||
int lguiGuiSetIconScale( lua_State* L );
|
||||
int lguiGuiGetIcons( lua_State* L );
|
||||
int lguiGuiLoadIcons( lua_State* L );
|
||||
int lguiGuiDrawIcon( lua_State* L );
|
||||
/* Container/separator controls, useful for controls organization. */
|
||||
int lguiGuiWindowBox( lua_State *L );
|
||||
int lguiGuiGroupBox( lua_State *L );
|
||||
int lguiGuiLine( lua_State *L );
|
||||
int lguiGuiPanel( lua_State *L );
|
||||
int lguiGuiTabBar( lua_State *L );
|
||||
int lguiGuiScrollPanel( lua_State *L );
|
||||
int lguiGuiWindowBox( lua_State* L );
|
||||
int lguiGuiGroupBox( lua_State* L );
|
||||
int lguiGuiLine( lua_State* L );
|
||||
int lguiGuiPanel( lua_State* L );
|
||||
int lguiGuiTabBar( lua_State* L );
|
||||
int lguiGuiScrollPanel( lua_State* L );
|
||||
/* Basic controls set. */
|
||||
int lguiGuiLabel( lua_State *L );
|
||||
int lguiGuiButton( lua_State *L );
|
||||
int lguiGuiLabelButton( lua_State *L );
|
||||
int lguiGuiToggle( lua_State *L );
|
||||
int lguiGuiToggleGroup( lua_State *L );
|
||||
int lguiGuiToggleSlider( lua_State *L );
|
||||
int lguiGuiCheckBox( lua_State *L );
|
||||
int lguiGuiComboBox( lua_State *L );
|
||||
int lguiGuiDropdownBox( lua_State *L );
|
||||
int lguiGuiSpinner( lua_State *L );
|
||||
int lguiGuiValueBox( lua_State *L );
|
||||
int lguiGuiTextBox( lua_State *L );
|
||||
int lguiGuiSlider( lua_State *L );
|
||||
int lguiGuiSliderBar( lua_State *L );
|
||||
int lguiGuiProgressBar( lua_State *L );
|
||||
int lguiGuiStatusBar( lua_State *L );
|
||||
int lguiGuiDummyRec( lua_State *L );
|
||||
int lguiGuiGrid( lua_State *L );
|
||||
int lguiGuiScrollBar( lua_State *L );
|
||||
int lguiGuiLabel( lua_State* L );
|
||||
int lguiGuiButton( lua_State* L );
|
||||
int lguiGuiLabelButton( lua_State* L );
|
||||
int lguiGuiToggle( lua_State* L );
|
||||
int lguiGuiToggleGroup( lua_State* L );
|
||||
int lguiGuiToggleSlider( lua_State* L );
|
||||
int lguiGuiCheckBox( lua_State* L );
|
||||
int lguiGuiComboBox( lua_State* L );
|
||||
int lguiGuiDropdownBox( lua_State* L );
|
||||
int lguiGuiSpinner( lua_State* L );
|
||||
int lguiGuiValueBox( lua_State* L );
|
||||
int lguiGuiTextBox( lua_State* L );
|
||||
int lguiGuiSlider( lua_State* L );
|
||||
int lguiGuiSliderBar( lua_State* L );
|
||||
int lguiGuiProgressBar( lua_State* L );
|
||||
int lguiGuiStatusBar( lua_State* L );
|
||||
int lguiGuiDummyRec( lua_State* L );
|
||||
int lguiGuiGrid( lua_State* L );
|
||||
int lguiGuiScrollBar( lua_State* L );
|
||||
/* Advance controls set. */
|
||||
int lguiGuiListView( lua_State *L );
|
||||
int lguiGuiListViewEx( lua_State *L );
|
||||
int lguiGuiMessageBox( lua_State *L );
|
||||
int lguiGuiTextInputBox( lua_State *L );
|
||||
int lguiGuiColorPicker( lua_State *L );
|
||||
int lguiGuiColorPanel( lua_State *L );
|
||||
int lguiGuiColorBarAlpha( lua_State *L );
|
||||
int lguiGuiColorBarHue( lua_State *L );
|
||||
int lguiGuiColorPickerHSV( lua_State *L );
|
||||
int lguiGuiColorPanelHSV( lua_State *L );
|
||||
int lguiGuiListView( lua_State* L );
|
||||
int lguiGuiListViewEx( lua_State* L );
|
||||
int lguiGuiMessageBox( lua_State* L );
|
||||
int lguiGuiTextInputBox( lua_State* L );
|
||||
int lguiGuiColorPicker( lua_State* L );
|
||||
int lguiGuiColorPanel( lua_State* L );
|
||||
int lguiGuiColorBarAlpha( lua_State* L );
|
||||
int lguiGuiColorBarHue( lua_State* L );
|
||||
int lguiGuiColorPickerHSV( lua_State* L );
|
||||
int lguiGuiColorPanelHSV( lua_State* L );
|
||||
|
||||
220
include/rmath.h
220
include/rmath.h
@@ -4,117 +4,117 @@ int imin( int a, int b );
|
||||
int imax( int a, int b );
|
||||
|
||||
/* Utils. */
|
||||
int lmathClamp( lua_State *L );
|
||||
int lmathLerp( lua_State *L );
|
||||
int lmathNormalize( lua_State *L );
|
||||
int lmathRemap( lua_State *L );
|
||||
int lmathWrap( lua_State *L );
|
||||
int lmathFloatEquals( lua_State *L );
|
||||
int lmathClamp( lua_State* L );
|
||||
int lmathLerp( lua_State* L );
|
||||
int lmathNormalize( lua_State* L );
|
||||
int lmathRemap( lua_State* L );
|
||||
int lmathWrap( lua_State* L );
|
||||
int lmathFloatEquals( lua_State* L );
|
||||
/* Vector2. */
|
||||
int lmathVector2Zero( lua_State *L );
|
||||
int lmathVector2One( lua_State *L );
|
||||
int lmathVector2Add( lua_State *L );
|
||||
int lmathVector2AddValue( lua_State *L );
|
||||
int lmathVector2Subtract( lua_State *L );
|
||||
int lmathVector2SubtractValue( lua_State *L );
|
||||
int lmathVector2Length( lua_State *L );
|
||||
int lmathVector2LengthSqr( lua_State *L );
|
||||
int lmathVector2DotProduct( lua_State *L );
|
||||
int lmathVector2Distance( lua_State *L );
|
||||
int lmathVector2DistanceSqr( lua_State *L );
|
||||
int lmathVector2Angle( lua_State *L );
|
||||
int lmathVector2LineAngle( lua_State *L );
|
||||
int lmathVector2Scale( lua_State *L );
|
||||
int lmathVector2Multiply( lua_State *L );
|
||||
int lmathVector2Negate( lua_State *L );
|
||||
int lmathVector2Divide( lua_State *L );
|
||||
int lmathVector2Normalize( lua_State *L );
|
||||
int lmathVector2Transform( lua_State *L );
|
||||
int lmathVector2Lerp( lua_State *L );
|
||||
int lmathVector2Reflect( lua_State *L );
|
||||
int lmathVector2Rotate( lua_State *L );
|
||||
int lmathVector2MoveTowards( lua_State *L );
|
||||
int lmathVector2Invert( lua_State *L );
|
||||
int lmathVector2Clamp( lua_State *L );
|
||||
int lmathVector2ClampValue( lua_State *L );
|
||||
int lmathVector2Equals( lua_State *L );
|
||||
int lmathVector2Zero( lua_State* L );
|
||||
int lmathVector2One( lua_State* L );
|
||||
int lmathVector2Add( lua_State* L );
|
||||
int lmathVector2AddValue( lua_State* L );
|
||||
int lmathVector2Subtract( lua_State* L );
|
||||
int lmathVector2SubtractValue( lua_State* L );
|
||||
int lmathVector2Length( lua_State* L );
|
||||
int lmathVector2LengthSqr( lua_State* L );
|
||||
int lmathVector2DotProduct( lua_State* L );
|
||||
int lmathVector2Distance( lua_State* L );
|
||||
int lmathVector2DistanceSqr( lua_State* L );
|
||||
int lmathVector2Angle( lua_State* L );
|
||||
int lmathVector2LineAngle( lua_State* L );
|
||||
int lmathVector2Scale( lua_State* L );
|
||||
int lmathVector2Multiply( lua_State* L );
|
||||
int lmathVector2Negate( lua_State* L );
|
||||
int lmathVector2Divide( lua_State* L );
|
||||
int lmathVector2Normalize( lua_State* L );
|
||||
int lmathVector2Transform( lua_State* L );
|
||||
int lmathVector2Lerp( lua_State* L );
|
||||
int lmathVector2Reflect( lua_State* L );
|
||||
int lmathVector2Rotate( lua_State* L );
|
||||
int lmathVector2MoveTowards( lua_State* L );
|
||||
int lmathVector2Invert( lua_State* L );
|
||||
int lmathVector2Clamp( lua_State* L );
|
||||
int lmathVector2ClampValue( lua_State* L );
|
||||
int lmathVector2Equals( lua_State* L );
|
||||
/* Vector3. */
|
||||
int lmathVector3Zero( lua_State *L );
|
||||
int lmathVector3One( lua_State *L );
|
||||
int lmathVector3Add( lua_State *L );
|
||||
int lmathVector3AddValue( lua_State *L );
|
||||
int lmathVector3Subtract( lua_State *L );
|
||||
int lmathVector3SubtractValue( lua_State *L );
|
||||
int lmathVector3Scale( lua_State *L );
|
||||
int lmathVector3Multiply( lua_State *L );
|
||||
int lmathVector3CrossProduct( lua_State *L );
|
||||
int lmathVector3Perpendicular( lua_State *L );
|
||||
int lmathVector3Length( lua_State *L );
|
||||
int lmathVector3LengthSqr( lua_State *L );
|
||||
int lmathVector3DotProduct( lua_State *L );
|
||||
int lmathVector3Distance( lua_State *L );
|
||||
int lmathVector3DistanceSqr( lua_State *L );
|
||||
int lmathVector3Angle( lua_State *L );
|
||||
int lmathVector3Negate( lua_State *L );
|
||||
int lmathVector3Divide( lua_State *L );
|
||||
int lmathVector3Normalize( lua_State *L );
|
||||
int lmathVector3OrthoNormalize( lua_State *L );
|
||||
int lmathVector3Transform( lua_State *L );
|
||||
int lmathVector3RotateByQuaternion( lua_State *L );
|
||||
int lmathVector3RotateByAxisAngle( lua_State *L );
|
||||
int lmathVector3Lerp( lua_State *L );
|
||||
int lmathVector3Reflect( lua_State *L );
|
||||
int lmathVector3Min( lua_State *L );
|
||||
int lmathVector3Max( lua_State *L );
|
||||
int lmathVector3Barycenter( lua_State *L );
|
||||
int lmathVector3Unproject( lua_State *L );
|
||||
int lmathVector3Invert( lua_State *L );
|
||||
int lmathVector3Clamp( lua_State *L );
|
||||
int lmathVector3ClampValue( lua_State *L );
|
||||
int lmathVector3Equals( lua_State *L );
|
||||
int lmathVector3Refract( lua_State *L );
|
||||
int lmathVector3Zero( lua_State* L );
|
||||
int lmathVector3One( lua_State* L );
|
||||
int lmathVector3Add( lua_State* L );
|
||||
int lmathVector3AddValue( lua_State* L );
|
||||
int lmathVector3Subtract( lua_State* L );
|
||||
int lmathVector3SubtractValue( lua_State* L );
|
||||
int lmathVector3Scale( lua_State* L );
|
||||
int lmathVector3Multiply( lua_State* L );
|
||||
int lmathVector3CrossProduct( lua_State* L );
|
||||
int lmathVector3Perpendicular( lua_State* L );
|
||||
int lmathVector3Length( lua_State* L );
|
||||
int lmathVector3LengthSqr( lua_State* L );
|
||||
int lmathVector3DotProduct( lua_State* L );
|
||||
int lmathVector3Distance( lua_State* L );
|
||||
int lmathVector3DistanceSqr( lua_State* L );
|
||||
int lmathVector3Angle( lua_State* L );
|
||||
int lmathVector3Negate( lua_State* L );
|
||||
int lmathVector3Divide( lua_State* L );
|
||||
int lmathVector3Normalize( lua_State* L );
|
||||
int lmathVector3OrthoNormalize( lua_State* L );
|
||||
int lmathVector3Transform( lua_State* L );
|
||||
int lmathVector3RotateByQuaternion( lua_State* L );
|
||||
int lmathVector3RotateByAxisAngle( lua_State* L );
|
||||
int lmathVector3Lerp( lua_State* L );
|
||||
int lmathVector3Reflect( lua_State* L );
|
||||
int lmathVector3Min( lua_State* L );
|
||||
int lmathVector3Max( lua_State* L );
|
||||
int lmathVector3Barycenter( lua_State* L );
|
||||
int lmathVector3Unproject( lua_State* L );
|
||||
int lmathVector3Invert( lua_State* L );
|
||||
int lmathVector3Clamp( lua_State* L );
|
||||
int lmathVector3ClampValue( lua_State* L );
|
||||
int lmathVector3Equals( lua_State* L );
|
||||
int lmathVector3Refract( lua_State* L );
|
||||
/* Matrix. */
|
||||
int lmathMatrixDeterminant( lua_State *L );
|
||||
int lmathMatrixTrace( lua_State *L );
|
||||
int lmathMatrixTranspose( lua_State *L );
|
||||
int lmathMatrixInvert( lua_State *L );
|
||||
int lmathMatrixIdentity( lua_State *L );
|
||||
int lmathMatrixAdd( lua_State *L );
|
||||
int lmathMatrixSubtract( lua_State *L );
|
||||
int lmathMatrixMultiply( lua_State *L );
|
||||
int lmathMatrixTranslate( lua_State *L );
|
||||
int lmathMatrixRotate( lua_State *L );
|
||||
int lmathMatrixRotateX( lua_State *L );
|
||||
int lmathMatrixRotateY( lua_State *L );
|
||||
int lmathMatrixRotateZ( lua_State *L );
|
||||
int lmathMatrixRotateXYZ( lua_State *L );
|
||||
int lmathMatrixRotateZYX( lua_State *L );
|
||||
int lmathMatrixScale( lua_State *L );
|
||||
int lmathMatrixFrustum( lua_State *L );
|
||||
int lmathMatrixPerspective( lua_State *L );
|
||||
int lmathMatrixOrtho( lua_State *L );
|
||||
int lmathMatrixLookAt( lua_State *L );
|
||||
int lmathMatrixDeterminant( lua_State* L );
|
||||
int lmathMatrixTrace( lua_State* L );
|
||||
int lmathMatrixTranspose( lua_State* L );
|
||||
int lmathMatrixInvert( lua_State* L );
|
||||
int lmathMatrixIdentity( lua_State* L );
|
||||
int lmathMatrixAdd( lua_State* L );
|
||||
int lmathMatrixSubtract( lua_State* L );
|
||||
int lmathMatrixMultiply( lua_State* L );
|
||||
int lmathMatrixTranslate( lua_State* L );
|
||||
int lmathMatrixRotate( lua_State* L );
|
||||
int lmathMatrixRotateX( lua_State* L );
|
||||
int lmathMatrixRotateY( lua_State* L );
|
||||
int lmathMatrixRotateZ( lua_State* L );
|
||||
int lmathMatrixRotateXYZ( lua_State* L );
|
||||
int lmathMatrixRotateZYX( lua_State* L );
|
||||
int lmathMatrixScale( lua_State* L );
|
||||
int lmathMatrixFrustum( lua_State* L );
|
||||
int lmathMatrixPerspective( lua_State* L );
|
||||
int lmathMatrixOrtho( lua_State* L );
|
||||
int lmathMatrixLookAt( lua_State* L );
|
||||
/* Quaternion. */
|
||||
int lmathQuaternionAdd( lua_State *L );
|
||||
int lmathQuaternionAddValue( lua_State *L );
|
||||
int lmathQuaternionSubtract( lua_State *L );
|
||||
int lmathQuaternionSubtractValue( lua_State *L );
|
||||
int lmathQuaternionIdentity( lua_State *L );
|
||||
int lmathQuaternionLength( lua_State *L );
|
||||
int lmathQuaternionNormalize( lua_State *L );
|
||||
int lmathQuaternionInvert( lua_State *L );
|
||||
int lmathQuaternionMultiply( lua_State *L );
|
||||
int lmathQuaternionScale( lua_State *L );
|
||||
int lmathQuaternionDivide( lua_State *L );
|
||||
int lmathQuaternionLerp( lua_State *L );
|
||||
int lmathQuaternionNlerp( lua_State *L );
|
||||
int lmathQuaternionSlerp( lua_State *L );
|
||||
int lmathQuaternionFromVector3ToVector3( lua_State *L );
|
||||
int lmathQuaternionFromMatrix( lua_State *L );
|
||||
int lmathQuaternionToMatrix( lua_State *L );
|
||||
int lmathQuaternionFromAxisAngle( lua_State *L );
|
||||
int lmathQuaternionToAxisAngle( lua_State *L );
|
||||
int lmathQuaternionFromEuler( lua_State *L );
|
||||
int lmathQuaternionToEuler( lua_State *L );
|
||||
int lmathQuaternionTransform( lua_State *L );
|
||||
int lmathQuaternionEquals( lua_State *L );
|
||||
int lmathQuaternionAdd( lua_State* L );
|
||||
int lmathQuaternionAddValue( lua_State* L );
|
||||
int lmathQuaternionSubtract( lua_State* L );
|
||||
int lmathQuaternionSubtractValue( lua_State* L );
|
||||
int lmathQuaternionIdentity( lua_State* L );
|
||||
int lmathQuaternionLength( lua_State* L );
|
||||
int lmathQuaternionNormalize( lua_State* L );
|
||||
int lmathQuaternionInvert( lua_State* L );
|
||||
int lmathQuaternionMultiply( lua_State* L );
|
||||
int lmathQuaternionScale( lua_State* L );
|
||||
int lmathQuaternionDivide( lua_State* L );
|
||||
int lmathQuaternionLerp( lua_State* L );
|
||||
int lmathQuaternionNlerp( lua_State* L );
|
||||
int lmathQuaternionSlerp( lua_State* L );
|
||||
int lmathQuaternionFromVector3ToVector3( lua_State* L );
|
||||
int lmathQuaternionFromMatrix( lua_State* L );
|
||||
int lmathQuaternionToMatrix( lua_State* L );
|
||||
int lmathQuaternionFromAxisAngle( lua_State* L );
|
||||
int lmathQuaternionToAxisAngle( lua_State* L );
|
||||
int lmathQuaternionFromEuler( lua_State* L );
|
||||
int lmathQuaternionToEuler( lua_State* L );
|
||||
int lmathQuaternionTransform( lua_State* L );
|
||||
int lmathQuaternionEquals( lua_State* L );
|
||||
|
||||
110
include/shapes.h
110
include/shapes.h
@@ -1,61 +1,61 @@
|
||||
#pragma once
|
||||
|
||||
/* Basic shapes drawing functions. */
|
||||
int lshapesSetShapesTexture( lua_State *L );
|
||||
int lshapesDrawPixel( lua_State *L );
|
||||
int lshapesDrawLine( lua_State *L );
|
||||
int lshapesDrawLineBezier( lua_State *L );
|
||||
int lshapesDrawLineStrip( lua_State *L );
|
||||
int lshapesDrawCircle( lua_State *L );
|
||||
int lshapesDrawCircleSector( lua_State *L );
|
||||
int lshapesDrawCircleSectorLines( lua_State *L );
|
||||
int lshapesDrawCircleGradient( lua_State *L );
|
||||
int lshapesDrawCircleLines( lua_State *L );
|
||||
int lshapesDrawEllipse( lua_State *L );
|
||||
int lshapesDrawEllipseLines( lua_State *L );
|
||||
int lshapesDrawRing( lua_State *L );
|
||||
int lshapesDrawRingLines( lua_State *L );
|
||||
int lshapesDrawRectangle( lua_State *L );
|
||||
int lshapesDrawRectanglePro( lua_State *L );
|
||||
int lshapesDrawRectangleGradientV( lua_State *L );
|
||||
int lshapesDrawRectangleGradientH( lua_State *L );
|
||||
int lshapesDrawRectangleGradientEx( lua_State *L );
|
||||
int lshapesDrawRectangleLines( lua_State *L );
|
||||
int lshapesDrawRectangleLinesEx( lua_State *L );
|
||||
int lshapesDrawRectangleRounded( lua_State *L );
|
||||
int lshapesDrawRectangleRoundedLines( lua_State *L );
|
||||
int lshapesDrawTriangle( lua_State *L );
|
||||
int lshapesDrawTriangleLines( lua_State *L );
|
||||
int lshapesDrawTriangleFan( lua_State *L );
|
||||
int lshapesDrawTriangleStrip( lua_State *L );
|
||||
int lshapesDrawPoly( lua_State *L );
|
||||
int lshapesDrawPolyLines( lua_State *L );
|
||||
int lshapesDrawPolyLinesEx( lua_State *L );
|
||||
int lshapesSetShapesTexture( lua_State* L );
|
||||
int lshapesDrawPixel( lua_State* L );
|
||||
int lshapesDrawLine( lua_State* L );
|
||||
int lshapesDrawLineBezier( lua_State* L );
|
||||
int lshapesDrawLineStrip( lua_State* L );
|
||||
int lshapesDrawCircle( lua_State* L );
|
||||
int lshapesDrawCircleSector( lua_State* L );
|
||||
int lshapesDrawCircleSectorLines( lua_State* L );
|
||||
int lshapesDrawCircleGradient( lua_State* L );
|
||||
int lshapesDrawCircleLines( lua_State* L );
|
||||
int lshapesDrawEllipse( lua_State* L );
|
||||
int lshapesDrawEllipseLines( lua_State* L );
|
||||
int lshapesDrawRing( lua_State* L );
|
||||
int lshapesDrawRingLines( lua_State* L );
|
||||
int lshapesDrawRectangle( lua_State* L );
|
||||
int lshapesDrawRectanglePro( lua_State* L );
|
||||
int lshapesDrawRectangleGradientV( lua_State* L );
|
||||
int lshapesDrawRectangleGradientH( lua_State* L );
|
||||
int lshapesDrawRectangleGradientEx( lua_State* L );
|
||||
int lshapesDrawRectangleLines( lua_State* L );
|
||||
int lshapesDrawRectangleLinesEx( lua_State* L );
|
||||
int lshapesDrawRectangleRounded( lua_State* L );
|
||||
int lshapesDrawRectangleRoundedLines( lua_State* L );
|
||||
int lshapesDrawTriangle( lua_State* L );
|
||||
int lshapesDrawTriangleLines( lua_State* L );
|
||||
int lshapesDrawTriangleFan( lua_State* L );
|
||||
int lshapesDrawTriangleStrip( lua_State* L );
|
||||
int lshapesDrawPoly( lua_State* L );
|
||||
int lshapesDrawPolyLines( lua_State* L );
|
||||
int lshapesDrawPolyLinesEx( lua_State* L );
|
||||
/* Splines drawing functions. */
|
||||
int lshapesDrawSplineLinear( lua_State *L );
|
||||
int lshapesDrawSplineBasis( lua_State *L );
|
||||
int lshapesDrawSplineCatmullRom( lua_State *L );
|
||||
int lshapesDrawSplineBezierQuadratic( lua_State *L );
|
||||
int lshapesDrawSplineBezierCubic( lua_State *L );
|
||||
int lshapesDrawSplineSegmentLinear( lua_State *L );
|
||||
int lshapesDrawSplineSegmentBasis( lua_State *L );
|
||||
int lshapesDrawSplineSegmentCatmullRom( lua_State *L );
|
||||
int lshapesDrawSplineSegmentBezierQuadratic( lua_State *L );
|
||||
int lshapesDrawSplineSegmentBezierCubic( lua_State *L );
|
||||
int lshapesDrawSplineLinear( lua_State* L );
|
||||
int lshapesDrawSplineBasis( lua_State* L );
|
||||
int lshapesDrawSplineCatmullRom( lua_State* L );
|
||||
int lshapesDrawSplineBezierQuadratic( lua_State* L );
|
||||
int lshapesDrawSplineBezierCubic( lua_State* L );
|
||||
int lshapesDrawSplineSegmentLinear( lua_State* L );
|
||||
int lshapesDrawSplineSegmentBasis( lua_State* L );
|
||||
int lshapesDrawSplineSegmentCatmullRom( lua_State* L );
|
||||
int lshapesDrawSplineSegmentBezierQuadratic( lua_State* L );
|
||||
int lshapesDrawSplineSegmentBezierCubic( lua_State* L );
|
||||
/* Basic Spline segment point evaluation functions, for a given t [0.0f .. 1.0f]. */
|
||||
int lshapesGetSplinePointLinear( lua_State *L );
|
||||
int lshapesGetSplinePointBasis( lua_State *L );
|
||||
int lshapesGetSplinePointCatmullRom( lua_State *L );
|
||||
int lshapesGetSplinePointBezierQuad( lua_State *L );
|
||||
int lshapesGetSplinePointBezierCubic( lua_State *L );
|
||||
int lshapesGetSplinePointLinear( lua_State* L );
|
||||
int lshapesGetSplinePointBasis( lua_State* L );
|
||||
int lshapesGetSplinePointCatmullRom( lua_State* L );
|
||||
int lshapesGetSplinePointBezierQuad( lua_State* L );
|
||||
int lshapesGetSplinePointBezierCubic( lua_State* L );
|
||||
/* Basic shapes collision detection functions. */
|
||||
int lshapesCheckCollisionRecs( lua_State *L );
|
||||
int lshapesCheckCollisionCircles( lua_State *L );
|
||||
int lshapesCheckCollisionCircleRec( lua_State *L );
|
||||
int lshapesCheckCollisionPointRec( lua_State *L );
|
||||
int lshapesCheckCollisionPointCircle( lua_State *L );
|
||||
int lshapesCheckCollisionPointTriangle( lua_State *L );
|
||||
int lshapesCheckCollisionPointPoly( lua_State *L );
|
||||
int lshapesCheckCollisionLines( lua_State *L );
|
||||
int lshapesCheckCollisionPointLine( lua_State *L );
|
||||
int lshapesGetCollisionRec( lua_State *L );
|
||||
int lshapesCheckCollisionRecs( lua_State* L );
|
||||
int lshapesCheckCollisionCircles( lua_State* L );
|
||||
int lshapesCheckCollisionCircleRec( lua_State* L );
|
||||
int lshapesCheckCollisionPointRec( lua_State* L );
|
||||
int lshapesCheckCollisionPointCircle( lua_State* L );
|
||||
int lshapesCheckCollisionPointTriangle( lua_State* L );
|
||||
int lshapesCheckCollisionPointPoly( lua_State* L );
|
||||
int lshapesCheckCollisionLines( lua_State* L );
|
||||
int lshapesCheckCollisionPointLine( lua_State* L );
|
||||
int lshapesGetCollisionRec( lua_State* L );
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
char *exePath;
|
||||
char* exePath;
|
||||
bool hasWindow;
|
||||
bool run;
|
||||
bool gcUnload;
|
||||
lua_State *luaState;
|
||||
lua_State* luaState;
|
||||
Vector2 resolution;
|
||||
int logLevelInvalid;
|
||||
Font defaultFont;
|
||||
Material defaultMaterial;
|
||||
Texture defaultTexture;
|
||||
int *RLGLcurrentShaderLocs;
|
||||
int* RLGLcurrentShaderLocs;
|
||||
/* Events. */
|
||||
#ifdef PLATFORM_DESKTOP
|
||||
/* Window events. */
|
||||
@@ -38,12 +38,12 @@ typedef struct {
|
||||
GLFWpentabletproximityfun glfwtabletProximityCallback;
|
||||
#elif PLATFORM_DESKTOP_SDL
|
||||
int SDL_eventQueueLen;
|
||||
SDL_Event *SDL_eventQueue;
|
||||
SDL_Event* SDL_eventQueue;
|
||||
#endif
|
||||
} State;
|
||||
|
||||
extern State *state;
|
||||
|
||||
bool stateInit( int argn, const char **argc, const char *exePath );
|
||||
void stateInitInterpret( int argn, const char **argc );
|
||||
bool stateInit( int argn, const char** argc, const char* exePath );
|
||||
void stateInitInterpret( int argn, const char** argc );
|
||||
void stateFree();
|
||||
|
||||
@@ -2,57 +2,57 @@
|
||||
|
||||
void unloadGlyphInfo( GlyphInfo *glyph );
|
||||
/* Font loading/unloading functions. */
|
||||
int ltextGetFontDefault( lua_State *L );
|
||||
int ltextLoadFont( lua_State *L );
|
||||
int ltextLoadFontEx( lua_State *L );
|
||||
int ltextLoadFontFromImage( lua_State *L );
|
||||
int ltextLoadFontFromMemory( lua_State *L );
|
||||
int ltextLoadFontFromData( lua_State *L );
|
||||
int ltextIsFontReady( lua_State *L );
|
||||
int ltextLoadFontData( lua_State *L );
|
||||
int ltextGenImageFontAtlas( lua_State *L );
|
||||
int ltextUnloadFont( lua_State *L );
|
||||
int ltextExportFontAsCode( lua_State *L );
|
||||
int ltextGetFontDefault( lua_State* L );
|
||||
int ltextLoadFont( lua_State* L );
|
||||
int ltextLoadFontEx( lua_State* L );
|
||||
int ltextLoadFontFromImage( lua_State* L );
|
||||
int ltextLoadFontFromMemory( lua_State* L );
|
||||
int ltextLoadFontFromData( lua_State* L );
|
||||
int ltextIsFontReady( lua_State* L );
|
||||
int ltextLoadFontData( lua_State* L );
|
||||
int ltextGenImageFontAtlas( lua_State* L );
|
||||
int ltextUnloadFont( lua_State* L );
|
||||
int ltextExportFontAsCode( lua_State* L );
|
||||
/* Text drawing functions. */
|
||||
int ltextDrawFPS( lua_State *L );
|
||||
int ltextDrawText( lua_State *L );
|
||||
int ltextDrawTextEx( lua_State *L );
|
||||
int ltextDrawTextPro( lua_State *L );
|
||||
int ltextDrawTextCodepoint( lua_State *L );
|
||||
int ltextDrawTextCodepoints( lua_State *L );
|
||||
int ltextDrawTextBoxed( lua_State *L );
|
||||
int ltextDrawTextBoxedTinted( lua_State *L );
|
||||
int ltextDrawFPS( lua_State* L );
|
||||
int ltextDrawText( lua_State* L );
|
||||
int ltextDrawTextEx( lua_State* L );
|
||||
int ltextDrawTextPro( lua_State* L );
|
||||
int ltextDrawTextCodepoint( lua_State* L );
|
||||
int ltextDrawTextCodepoints( lua_State* L );
|
||||
int ltextDrawTextBoxed( lua_State* L );
|
||||
int ltextDrawTextBoxedTinted( lua_State* L );
|
||||
/* Text font info functions. */
|
||||
int ltextSetTextLineSpacing( lua_State *L );
|
||||
int ltextMeasureText( lua_State *L );
|
||||
int ltextGetGlyphIndex( lua_State *L );
|
||||
int ltextGetGlyphInfo( lua_State *L );
|
||||
int ltextGetGlyphInfoByIndex( lua_State *L );
|
||||
int ltextGetGlyphAtlasRec( lua_State *L );
|
||||
int ltextGetGlyphAtlasRecByIndex( lua_State *L );
|
||||
int ltextGetFontBaseSize( lua_State *L );
|
||||
int ltextGetFontGlyphCount( lua_State *L );
|
||||
int ltextGetFontGlyphPadding( lua_State *L );
|
||||
int ltextGetFontTexture( lua_State *L );
|
||||
int ltextSetTextLineSpacing( lua_State* L );
|
||||
int ltextMeasureText( lua_State* L );
|
||||
int ltextGetGlyphIndex( lua_State* L );
|
||||
int ltextGetGlyphInfo( lua_State* L );
|
||||
int ltextGetGlyphInfoByIndex( lua_State* L );
|
||||
int ltextGetGlyphAtlasRec( lua_State* L );
|
||||
int ltextGetGlyphAtlasRecByIndex( lua_State* L );
|
||||
int ltextGetFontBaseSize( lua_State* L );
|
||||
int ltextGetFontGlyphCount( lua_State* L );
|
||||
int ltextGetFontGlyphPadding( lua_State* L );
|
||||
int ltextGetFontTexture( lua_State* L );
|
||||
/* GlyphInfo management functions. */
|
||||
int ltextLoadGlyphInfo( lua_State *L );
|
||||
int ltextUnloadGlyphInfo( lua_State *L );
|
||||
int ltextSetGlyphInfoValue( lua_State *L );
|
||||
int ltextSetGlyphInfoOffset( lua_State *L );
|
||||
int ltextSetGlyphInfoAdvanceX( lua_State *L );
|
||||
int ltextSetGlyphInfoImage( lua_State *L );
|
||||
int ltextGetGlyphInfoValue( lua_State *L );
|
||||
int ltextGetGlyphInfoOffset( lua_State *L );
|
||||
int ltextGetGlyphInfoAdvanceX( lua_State *L );
|
||||
int ltextGetGlyphInfoImage( lua_State *L );
|
||||
int ltextLoadGlyphInfo( lua_State* L );
|
||||
int ltextUnloadGlyphInfo( lua_State* L );
|
||||
int ltextSetGlyphInfoValue( lua_State* L );
|
||||
int ltextSetGlyphInfoOffset( lua_State* L );
|
||||
int ltextSetGlyphInfoAdvanceX( lua_State* L );
|
||||
int ltextSetGlyphInfoImage( lua_State* L );
|
||||
int ltextGetGlyphInfoValue( lua_State* L );
|
||||
int ltextGetGlyphInfoOffset( lua_State* L );
|
||||
int ltextGetGlyphInfoAdvanceX( lua_State* L );
|
||||
int ltextGetGlyphInfoImage( lua_State* L );
|
||||
/* Text codepoints management functions (unicode characters). */
|
||||
int ltextLoadUTF8( lua_State *L );
|
||||
int ltextLoadCodepoints( lua_State *L );
|
||||
int ltextGetCodepointCount( lua_State *L );
|
||||
int ltextGetCodepoint( lua_State *L );
|
||||
int ltextGetCodepointNext( lua_State *L );
|
||||
int ltextGetCodepointPrevious( lua_State *L );
|
||||
int ltextCodepointToUTF8( lua_State *L );
|
||||
int ltextLoadUTF8( lua_State* L );
|
||||
int ltextLoadCodepoints( lua_State* L );
|
||||
int ltextGetCodepointCount( lua_State* L );
|
||||
int ltextGetCodepoint( lua_State* L );
|
||||
int ltextGetCodepointNext( lua_State* L );
|
||||
int ltextGetCodepointPrevious( lua_State* L );
|
||||
int ltextCodepointToUTF8( lua_State* L );
|
||||
/* Text strings management functions (no UTF-8 strings, only byte chars) */
|
||||
int ltextTextInsert( lua_State *L );
|
||||
int ltextTextSplit( lua_State *L );
|
||||
int ltextTextInsert( lua_State* L );
|
||||
int ltextTextSplit( lua_State* L );
|
||||
|
||||
@@ -1,120 +1,120 @@
|
||||
#pragma once
|
||||
|
||||
/* Image loading functions. */
|
||||
int ltexturesLoadImage( lua_State *L );
|
||||
int ltexturesLoadImageRaw( lua_State *L );
|
||||
int ltexturesLoadImageSvg( lua_State *L );
|
||||
int ltexturesLoadImageAnim( lua_State *L );
|
||||
int ltexturesLoadImageFromMemory( lua_State *L );
|
||||
int ltexturesLoadImageFromData( lua_State *L );
|
||||
int ltexturesLoadImageFromTexture( lua_State *L );
|
||||
int ltexturesLoadImageFromScreen( lua_State *L );
|
||||
int ltextureIsImageReady( lua_State *L );
|
||||
int ltextureUnloadImage( lua_State *L );
|
||||
int ltexturesExportImage( lua_State *L );
|
||||
int ltexturesExportImageToMemory( lua_State *L );
|
||||
int ltexturesExportImageAsCode( lua_State *L );
|
||||
int ltexturesLoadImage( lua_State* L );
|
||||
int ltexturesLoadImageRaw( lua_State* L );
|
||||
int ltexturesLoadImageSvg( lua_State* L );
|
||||
int ltexturesLoadImageAnim( lua_State* L );
|
||||
int ltexturesLoadImageFromMemory( lua_State* L );
|
||||
int ltexturesLoadImageFromData( lua_State* L );
|
||||
int ltexturesLoadImageFromTexture( lua_State* L );
|
||||
int ltexturesLoadImageFromScreen( lua_State* L );
|
||||
int ltextureIsImageReady( lua_State* L );
|
||||
int ltextureUnloadImage( lua_State* L );
|
||||
int ltexturesExportImage( lua_State* L );
|
||||
int ltexturesExportImageToMemory( lua_State* L );
|
||||
int ltexturesExportImageAsCode( lua_State* L );
|
||||
/* Image generation functions. */
|
||||
int ltexturesGenImageColor( lua_State *L );
|
||||
int ltexturesGenImageGradientLinear( lua_State *L );
|
||||
int ltexturesGenImageGradientRadial( lua_State *L );
|
||||
int ltexturesGenImageGradientSquare( lua_State *L );
|
||||
int ltexturesGenImageChecked( lua_State *L );
|
||||
int ltexturesGenImageWhiteNoise( lua_State *L );
|
||||
int ltexturesGenImagePerlinNoise( lua_State *L );
|
||||
int ltexturesGenImageCellular( lua_State *L );
|
||||
int ltexturesGenImageText( lua_State *L );
|
||||
int ltexturesGenImageColor( lua_State* L );
|
||||
int ltexturesGenImageGradientLinear( lua_State* L );
|
||||
int ltexturesGenImageGradientRadial( lua_State* L );
|
||||
int ltexturesGenImageGradientSquare( lua_State* L );
|
||||
int ltexturesGenImageChecked( lua_State* L );
|
||||
int ltexturesGenImageWhiteNoise( lua_State* L );
|
||||
int ltexturesGenImagePerlinNoise( lua_State* L );
|
||||
int ltexturesGenImageCellular( lua_State* L );
|
||||
int ltexturesGenImageText( lua_State* L );
|
||||
/* Image manipulation functions. */
|
||||
int ltexturesImageCopy( lua_State *L );
|
||||
int ltexturesImageFromImage( lua_State *L );
|
||||
int ltexturesImageText( lua_State *L );
|
||||
int ltexturesImageFormat( lua_State *L );
|
||||
int ltexturesImageToPOT( lua_State *L );
|
||||
int ltexturesImageCrop( lua_State *L );
|
||||
int ltexturesImageAlphaCrop( lua_State *L );
|
||||
int ltexturesImageAlphaClear( lua_State *L );
|
||||
int ltexturesImageAlphaMask( lua_State *L );
|
||||
int ltexturesImageAlphaPremultiply( lua_State *L );
|
||||
int ltexturesImageBlurGaussian( lua_State *L );
|
||||
int ltexturesImageResize( lua_State *L );
|
||||
int ltexturesImageResizeNN( lua_State *L );
|
||||
int ltexturesImageResizeCanvas( lua_State *L );
|
||||
int ltexturesImageMipmaps( lua_State *L );
|
||||
int ltexturesImageDither( lua_State *L );
|
||||
int ltexturesImageFlipVertical( lua_State *L );
|
||||
int ltexturesImageFlipHorizontal( lua_State *L );
|
||||
int ltexturesImageRotate( lua_State *L );
|
||||
int ltexturesImageRotateCW( lua_State *L );
|
||||
int ltexturesImageRotateCCW( lua_State *L );
|
||||
int ltexturesImageColorTint( lua_State *L );
|
||||
int ltexturesImageColorInvert( lua_State *L );
|
||||
int ltexturesImageColorGrayscale( lua_State *L );
|
||||
int ltexturesImageColorContrast( lua_State *L );
|
||||
int ltexturesImageColorBrightness( lua_State *L );
|
||||
int ltexturesImageColorReplace( lua_State *L );
|
||||
int ltexturesLoadImageColors( lua_State *L );
|
||||
int ltexturesLoadImagePalette( lua_State *L );
|
||||
int ltexturesGetImageAlphaBorder( lua_State *L );
|
||||
int ltexturesGetImageColor( lua_State *L );
|
||||
int ltexturesImageCopy( lua_State* L );
|
||||
int ltexturesImageFromImage( lua_State* L );
|
||||
int ltexturesImageText( lua_State* L );
|
||||
int ltexturesImageFormat( lua_State* L );
|
||||
int ltexturesImageToPOT( lua_State* L );
|
||||
int ltexturesImageCrop( lua_State* L );
|
||||
int ltexturesImageAlphaCrop( lua_State* L );
|
||||
int ltexturesImageAlphaClear( lua_State* L );
|
||||
int ltexturesImageAlphaMask( lua_State* L );
|
||||
int ltexturesImageAlphaPremultiply( lua_State* L );
|
||||
int ltexturesImageBlurGaussian( lua_State* L );
|
||||
int ltexturesImageResize( lua_State* L );
|
||||
int ltexturesImageResizeNN( lua_State* L );
|
||||
int ltexturesImageResizeCanvas( lua_State* L );
|
||||
int ltexturesImageMipmaps( lua_State* L );
|
||||
int ltexturesImageDither( lua_State* L );
|
||||
int ltexturesImageFlipVertical( lua_State* L );
|
||||
int ltexturesImageFlipHorizontal( lua_State* L );
|
||||
int ltexturesImageRotate( lua_State* L );
|
||||
int ltexturesImageRotateCW( lua_State* L );
|
||||
int ltexturesImageRotateCCW( lua_State* L );
|
||||
int ltexturesImageColorTint( lua_State* L );
|
||||
int ltexturesImageColorInvert( lua_State* L );
|
||||
int ltexturesImageColorGrayscale( lua_State* L );
|
||||
int ltexturesImageColorContrast( lua_State* L );
|
||||
int ltexturesImageColorBrightness( lua_State* L );
|
||||
int ltexturesImageColorReplace( lua_State* L );
|
||||
int ltexturesLoadImageColors( lua_State* L );
|
||||
int ltexturesLoadImagePalette( lua_State* L );
|
||||
int ltexturesGetImageAlphaBorder( lua_State* L );
|
||||
int ltexturesGetImageColor( lua_State* L );
|
||||
/* Image configuration functions. */
|
||||
int ltexturesGetImageData( lua_State *L );
|
||||
int ltexturesGetImageSize( lua_State *L );
|
||||
int ltexturesGetImageMipmaps( lua_State *L );
|
||||
int ltexturesGetImageFormat( lua_State *L );
|
||||
int ltexturesGetImageData( lua_State* L );
|
||||
int ltexturesGetImageSize( lua_State* L );
|
||||
int ltexturesGetImageMipmaps( lua_State* L );
|
||||
int ltexturesGetImageFormat( lua_State* L );
|
||||
/* Image drawing functions. */
|
||||
int ltexturesImageClearBackground( lua_State *L );
|
||||
int ltexturesImageDrawPixel( lua_State *L );
|
||||
int ltexturesImageDrawLine( lua_State *L );
|
||||
int ltexturesImageDrawCircle( lua_State *L );
|
||||
int ltexturesImageDrawCircleLines( lua_State *L );
|
||||
int ltexturesImageDrawRectangle( lua_State *L );
|
||||
int ltexturesImageDrawRectangleLines( lua_State *L );
|
||||
int ltexturesImageDraw( lua_State *L );
|
||||
int ltexturesImageDrawTextEx( lua_State *L );
|
||||
int ltexturesImageClearBackground( lua_State* L );
|
||||
int ltexturesImageDrawPixel( lua_State* L );
|
||||
int ltexturesImageDrawLine( lua_State* L );
|
||||
int ltexturesImageDrawCircle( lua_State* L );
|
||||
int ltexturesImageDrawCircleLines( lua_State* L );
|
||||
int ltexturesImageDrawRectangle( lua_State* L );
|
||||
int ltexturesImageDrawRectangleLines( lua_State* L );
|
||||
int ltexturesImageDraw( lua_State* L );
|
||||
int ltexturesImageDrawTextEx( lua_State* L );
|
||||
/* Texture loading functions. */
|
||||
int ltexturesGetTextureDefault( lua_State *L );
|
||||
int ltexturesLoadTexture( lua_State *L );
|
||||
int ltexturesLoadTextureFromImage( lua_State *L );
|
||||
int ltexturesLoadTextureCubemap( lua_State *L );
|
||||
int ltexturesLoadTextureFromData( lua_State *L );
|
||||
int ltexturesLoadRenderTexture( lua_State *L );
|
||||
int ltexturesLoadRenderTextureFromData( lua_State *L );
|
||||
int ltexturesIsTextureReady( lua_State *L );
|
||||
int ltextureUnloadTexture( lua_State *L );
|
||||
int ltexturesIsRenderTextureReady( lua_State *L );
|
||||
int ltextureUnloadRenderTexture( lua_State *L );
|
||||
int ltexturesUpdateTexture( lua_State *L );
|
||||
int ltexturesUpdateTextureRec( lua_State *L );
|
||||
int ltexturesGetTextureDefault( lua_State* L );
|
||||
int ltexturesLoadTexture( lua_State* L );
|
||||
int ltexturesLoadTextureFromImage( lua_State* L );
|
||||
int ltexturesLoadTextureCubemap( lua_State* L );
|
||||
int ltexturesLoadTextureFromData( lua_State* L );
|
||||
int ltexturesLoadRenderTexture( lua_State* L );
|
||||
int ltexturesLoadRenderTextureFromData( lua_State* L );
|
||||
int ltexturesIsTextureReady( lua_State* L );
|
||||
int ltextureUnloadTexture( lua_State* L );
|
||||
int ltexturesIsRenderTextureReady( lua_State* L );
|
||||
int ltextureUnloadRenderTexture( lua_State* L );
|
||||
int ltexturesUpdateTexture( lua_State* L );
|
||||
int ltexturesUpdateTextureRec( lua_State* L );
|
||||
/* Texture configuration functions. */
|
||||
int ltexturesGenTextureMipmaps( lua_State *L );
|
||||
int ltexturesSetTextureFilter( lua_State *L );
|
||||
int ltexturesSetTextureWrap( lua_State *L );
|
||||
int ltexturesGetTextureId( lua_State *L );
|
||||
int ltexturesGetTextureSize( lua_State *L );
|
||||
int ltexturesGetTextureMipmaps( lua_State *L );
|
||||
int ltexturesGetTextureFormat( lua_State *L );
|
||||
int ltexturesGenTextureMipmaps( lua_State* L );
|
||||
int ltexturesSetTextureFilter( lua_State* L );
|
||||
int ltexturesSetTextureWrap( lua_State* L );
|
||||
int ltexturesGetTextureId( lua_State* L );
|
||||
int ltexturesGetTextureSize( lua_State* L );
|
||||
int ltexturesGetTextureMipmaps( lua_State* L );
|
||||
int ltexturesGetTextureFormat( lua_State* L );
|
||||
/* Texture drawing functions. */
|
||||
int ltexturesDrawTexture( lua_State *L );
|
||||
int ltexturesDrawTextureRec( lua_State *L );
|
||||
int ltexturesDrawTexturePro( lua_State *L );
|
||||
int ltexturesDrawTextureNPatch( lua_State *L );
|
||||
int ltexturesDrawTextureNPatchRepeat( lua_State *L );
|
||||
int ltexturesDrawTexture( lua_State* L );
|
||||
int ltexturesDrawTextureRec( lua_State* L );
|
||||
int ltexturesDrawTexturePro( lua_State* L );
|
||||
int ltexturesDrawTextureNPatch( lua_State* L );
|
||||
int ltexturesDrawTextureNPatchRepeat( lua_State* L );
|
||||
/* RenderTexture configuration functions. */
|
||||
int ltexturesGetRenderTextureId( lua_State *L );
|
||||
int ltexturesGetRenderTextureTexture( lua_State *L );
|
||||
int ltexturesGetRenderTextureDepthTexture( lua_State *L );
|
||||
int ltexturesGetRenderTextureId( lua_State* L );
|
||||
int ltexturesGetRenderTextureTexture( lua_State* L );
|
||||
int ltexturesGetRenderTextureDepthTexture( lua_State* L );
|
||||
/* Color/pixel related functions. */
|
||||
int ltexturesFade( lua_State *L );
|
||||
int ltexturesColorToInt( lua_State *L );
|
||||
int ltexturesColorNormalize( lua_State *L );
|
||||
int ltexturesColorFromNormalized( lua_State *L );
|
||||
int ltexturesColorToHSV( lua_State *L );
|
||||
int ltexturesColorFromHSV( lua_State *L );
|
||||
int ltexturesColorTint( lua_State *L );
|
||||
int ltexturesColorBrightness( lua_State *L );
|
||||
int ltexturesColorContrast( lua_State *L );
|
||||
int ltexturesColorAlpha( lua_State *L );
|
||||
int ltexturesColorAlphaBlend( lua_State *L );
|
||||
int ltexturesGetColor( lua_State *L );
|
||||
int ltexturesGetPixelColor( lua_State *L );
|
||||
int ltexturesGetPixelDataSize( lua_State *L );
|
||||
int ltexturesFade( lua_State* L );
|
||||
int ltexturesColorToInt( lua_State* L );
|
||||
int ltexturesColorNormalize( lua_State* L );
|
||||
int ltexturesColorFromNormalized( lua_State* L );
|
||||
int ltexturesColorToHSV( lua_State* L );
|
||||
int ltexturesColorFromHSV( lua_State* L );
|
||||
int ltexturesColorTint( lua_State* L );
|
||||
int ltexturesColorBrightness( lua_State* L );
|
||||
int ltexturesColorContrast( lua_State* L );
|
||||
int ltexturesColorAlpha( lua_State* L );
|
||||
int ltexturesColorAlphaBlend( lua_State* L );
|
||||
int ltexturesGetColor( lua_State* L );
|
||||
int ltexturesGetPixelColor( lua_State* L );
|
||||
int ltexturesGetPixelDataSize( lua_State* L );
|
||||
|
||||
Reference in New Issue
Block a user