From 47ed28b006db71d823cfaa24fa143ab5cfcf279b Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 25 Feb 2024 14:06:59 +0200 Subject: Added various missing functions. --- include/audio.h | 2 ++ include/core.h | 10 +++++++++- include/models.h | 2 ++ include/text.h | 4 ++++ include/textures.h | 4 +++- 5 files changed, 20 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/audio.h b/include/audio.h index cee8f0b..add37fc 100644 --- a/include/audio.h +++ b/include/audio.h @@ -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. */ diff --git a/include/core.h b/include/core.h index 9a9a144..e9f8d1b 100644 --- a/include/core.h +++ b/include/core.h @@ -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 ); diff --git a/include/models.h b/include/models.h index 786b16e..d56d2c6 100644 --- a/include/models.h +++ b/include/models.h @@ -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 ); diff --git a/include/text.h b/include/text.h index b921e9c..d936ec6 100644 --- a/include/text.h +++ b/include/text.h @@ -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 ); diff --git a/include/textures.h b/include/textures.h index e8e376f..e53e29c 100644 --- a/include/textures.h +++ b/include/textures.h @@ -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 ); -- cgit v1.2.3