Added various missing functions.

This commit is contained in:
jussi
2024-02-25 14:06:59 +02:00
parent 631cea6aa7
commit 47ed28b006
21 changed files with 697 additions and 178 deletions

View File

@@ -14,6 +14,7 @@ int laudioIsWaveReady( lua_State* L );
int laudioLoadSoundFromWave( lua_State* L );
int laudioLoadSoundAlias( lua_State* L );
int laudioIsSoundReady( lua_State* L );
int laudioUpdateSound( lua_State* L );
int laudioUnloadWave( lua_State* L );
int laudioUnloadSound( lua_State* L );
int laudioUnloadSoundAlias( lua_State* L );
@@ -29,6 +30,7 @@ int laudioSetSoundVolume( lua_State* L );
int laudioSetSoundPitch( lua_State* L );
int laudioSetSoundPan( lua_State* L );
int laudioWaveFormat( lua_State* L );
int laudioLoadWaveSamples( lua_State* L );
int laudioWaveCopy( lua_State* L );
int laudioWaveCrop( lua_State* L );
/* Music management functions. */

View File

@@ -91,9 +91,13 @@ 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 lcoreGetFPS( lua_State* L );
/* Custom frame control functions. */
int lcoreSwapScreenBuffer( lua_State* L );
int lcorePollInputEvents( lua_State* L );
int lcoreWaitTime( lua_State* L );
/* Random values generation functions. */
int lcoreSetRandomSeed( lua_State* L );
int lcoreGetRandomValue( lua_State* L );
@@ -141,6 +145,7 @@ int lcoreEncodeDataBase64( lua_State* L );
int lcoreDecodeDataBase64( lua_State* L );
/* Input-related functions: keyboard. */
int lcoreIsKeyPressed( lua_State* L );
int lcoreIsKeyPressedRepeat( lua_State* L );
int lcoreIsKeyDown( lua_State* L );
int lcoreIsKeyReleased( lua_State* L );
int lcoreIsKeyUp( lua_State* L );
@@ -155,6 +160,8 @@ int lcoreGetGamepadName( lua_State* L );
int lcoreIsGamepadButtonPressed( lua_State* L );
int lcoreIsGamepadButtonDown( lua_State* L );
int lcoreIsGamepadButtonReleased( lua_State* L );
int lcoreIsGamepadButtonUp( lua_State* L );
int lcoreGetGamepadButtonPressed( lua_State* L );
int lcoreGetGamepadAxisCount( lua_State* L );
int lcoreGetGamepadAxisMovement( lua_State* L );
int lcoreSetGamepadMappings( lua_State* L );
@@ -169,6 +176,7 @@ int lcoreSetMousePosition( lua_State* L );
int lcoreSetMouseOffset( lua_State* L );
int lcoreSetMouseScale( lua_State* L );
int lcoreGetMouseWheelMove( lua_State* L );
int lcoreGetMouseWheelMoveV( lua_State* L );
int lcoreSetMouseCursor( lua_State* L );
/* Input-related functions: touch. */
int lcoreGetTouchPosition( lua_State* L );

View File

@@ -11,6 +11,7 @@ int lmodelsDrawLine3D( lua_State* L );
int lmodelsDrawPoint3D( lua_State* L );
int lmodelsDrawCircle3D( lua_State* L );
int lmodelsDrawTriangle3D( lua_State* L );
int lmodelsDrawTriangleStrip3D( lua_State* L );
int lmodelsDrawCube( lua_State* L );
int lmodelsDrawCubeWires( lua_State* L );
int lmodelsDrawSphere( lua_State* L );
@@ -69,6 +70,7 @@ int lmodelsGenMeshPoly( lua_State* L );
int lmodelsGenMeshPlane( lua_State* L );
int lmodelsGenMeshCube( lua_State* L );
int lmodelsGenMeshSphere( lua_State* L );
int lmodelsGenMeshHemiSphere( lua_State* L );
int lmodelsGenMeshCylinder( lua_State* L );
int lmodelsGenMeshCone( lua_State* L );
int lmodelsGenMeshTorus( lua_State* L );

View File

@@ -25,6 +25,7 @@ int ltextDrawTextBoxedTinted( lua_State* L );
/* Text font info functions. */
int ltextSetTextLineSpacing( lua_State* L );
int ltextMeasureText( lua_State* L );
int ltextMeasureTextEx( lua_State* L );
int ltextGetGlyphIndex( lua_State* L );
int ltextGetGlyphInfo( lua_State* L );
int ltextGetGlyphInfoByIndex( lua_State* L );
@@ -54,6 +55,9 @@ 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 ltextTextSubtext( lua_State* L );
int ltextTextReplace( lua_State* L );
int ltextTextInsert( lua_State* L );
int ltextTextSplit( lua_State* L );
int ltextTextFindIndex( lua_State* L );
int ltextTextToPascal( lua_State* L );

View File

@@ -28,6 +28,7 @@ int ltexturesGenImageText( lua_State* L );
int ltexturesImageCopy( lua_State* L );
int ltexturesImageFromImage( lua_State* L );
int ltexturesImageText( lua_State* L );
int ltexturesImageTextEx( lua_State* L );
int ltexturesImageFormat( lua_State* L );
int ltexturesImageToPOT( lua_State* L );
int ltexturesImageCrop( lua_State* L );
@@ -70,6 +71,7 @@ int ltexturesImageDrawCircleLines( lua_State* L );
int ltexturesImageDrawRectangle( lua_State* L );
int ltexturesImageDrawRectangleLines( lua_State* L );
int ltexturesImageDraw( lua_State* L );
int ltexturesImageDrawText( lua_State* L );
int ltexturesImageDrawTextEx( lua_State* L );
/* Texture loading functions. */
int ltexturesGetTextureDefault( lua_State* L );
@@ -95,6 +97,7 @@ int ltexturesGetTextureMipmaps( lua_State* L );
int ltexturesGetTextureFormat( lua_State* L );
/* Texture drawing functions. */
int ltexturesDrawTexture( lua_State* L );
int ltexturesDrawTextureEx( lua_State* L );
int ltexturesDrawTextureRec( lua_State* L );
int ltexturesDrawTexturePro( lua_State* L );
int ltexturesDrawTextureNPatch( lua_State* L );
@@ -116,5 +119,4 @@ 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 );