From fe15e836bd87963d10bd301a3a24652763059e0d Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 6 Apr 2023 19:19:44 +0300 Subject: Switched to Raylib vertion 4.5. Removed some functions and added others. Main changes to camera3D. --- src/lua_core.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/lua_core.c') diff --git a/src/lua_core.c b/src/lua_core.c index caea688..9197170 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -341,6 +341,7 @@ void defineGlobals() { assignGlobalInt( BLEND_SUBTRACT_COLORS, "BLEND_SUBTRACT_COLORS" ); assignGlobalInt( BLEND_ALPHA_PREMULTIPLY, "BLEND_ALPHA_PREMULTIPLY" ); assignGlobalInt( BLEND_CUSTOM, "BLEND_CUSTOM" ); + assignGlobalInt( BLEND_CUSTOM_SEPARATE, "BLEND_CUSTOM_SEPARATE" ); /* Gesture */ assignGlobalInt( GESTURE_NONE, "GESTURE_NONE" ); assignGlobalInt( GESTURE_TAP, "GESTURE_TAP" ); @@ -814,11 +815,12 @@ void luaRegister() { assingGlobalFunction( "GetCamera3DFovy", lcoreGetCamera3DFovy ); assingGlobalFunction( "GetCamera3DProjection", lcoreGetCamera3DProjection ); assingGlobalFunction( "UpdateCamera3D", lcoreUpdateCamera3D ); - assingGlobalFunction( "SetCameraMode", lcoreSetCameraMode ); - assingGlobalFunction( "SetCameraPanControl", lcoreSetCameraPanControl ); - assingGlobalFunction( "SetCameraAltControl", lcoreSetCameraAltControl ); - assingGlobalFunction( "SetCameraSmoothZoomControl", lcoreSetCameraSmoothZoomControl ); - assingGlobalFunction( "SetCameraMoveControls", lcoreSetCameraMoveControls ); + assingGlobalFunction( "UpdateCamera3DPro", lcoreUpdateCamera3DPro ); + // assingGlobalFunction( "SetCameraMode", lcoreSetCameraMode ); + // assingGlobalFunction( "SetCameraPanControl", lcoreSetCameraPanControl ); + // assingGlobalFunction( "SetCameraAltControl", lcoreSetCameraAltControl ); + // assingGlobalFunction( "SetCameraSmoothZoomControl", lcoreSetCameraSmoothZoomControl ); + // assingGlobalFunction( "SetCameraMoveControls", lcoreSetCameraMoveControls ); /* Input-related Keyboard. */ assingGlobalFunction( "IsKeyPressed", lcoreIsKeyPressed ); assingGlobalFunction( "IsKeyDown", lcoreIsKeyDown ); @@ -987,10 +989,10 @@ void luaRegister() { /* Texture Drawing. */ assingGlobalFunction( "DrawTexture", ltexturesDrawTexture ); assingGlobalFunction( "DrawTextureRec", ltexturesDrawTextureRec ); - assingGlobalFunction( "DrawTextureTiled", ltexturesDrawTextureTiled ); + // assingGlobalFunction( "DrawTextureTiled", ltexturesDrawTextureTiled ); assingGlobalFunction( "DrawTexturePro", ltexturesDrawTexturePro ); assingGlobalFunction( "DrawTextureNPatch", ltexturesDrawTextureNPatch ); - assingGlobalFunction( "DrawTexturePoly", ltexturesDrawTexturePoly ); + // assingGlobalFunction( "DrawTexturePoly", ltexturesDrawTexturePoly ); assingGlobalFunction( "BeginTextureMode", ltexturesBeginTextureMode ); assingGlobalFunction( "EndTextureMode", ltexturesEndTextureMode ); assingGlobalFunction( "SetTextureSource", ltexturesSetTextureSource ); @@ -1023,7 +1025,7 @@ void luaRegister() { assingGlobalFunction( "DrawTriangle3D", lmodelsDrawTriangle3D ); assingGlobalFunction( "DrawCube", lmodelsDrawCube ); assingGlobalFunction( "DrawCubeWires", lmodelsDrawCubeWires ); - assingGlobalFunction( "DrawCubeTexture", lmodelsDrawCubeTexture ); + // assingGlobalFunction( "DrawCubeTexture", lmodelsDrawCubeTexture ); assingGlobalFunction( "DrawSphere", lmodelsDrawSphere ); assingGlobalFunction( "DrawSphereEx", lmodelsDrawSphereEx ); assingGlobalFunction( "DrawSphereWires", lmodelsDrawSphereWires ); @@ -1123,9 +1125,9 @@ void luaRegister() { assingGlobalFunction( "StopSound", laudioStopSound ); assingGlobalFunction( "PauseSound", laudioPauseSound ); assingGlobalFunction( "ResumeSound", laudioResumeSound ); - assingGlobalFunction( "PlaySoundMulti", laudioPlaySoundMulti ); - assingGlobalFunction( "StopSoundMulti", laudioStopSoundMulti ); - assingGlobalFunction( "GetSoundsPlaying", laudioGetSoundsPlaying ); + // assingGlobalFunction( "PlaySoundMulti", laudioPlaySoundMulti ); + // assingGlobalFunction( "StopSoundMulti", laudioStopSoundMulti ); + // assingGlobalFunction( "GetSoundsPlaying", laudioGetSoundsPlaying ); assingGlobalFunction( "IsSoundPlaying", laudioIsSoundPlaying ); assingGlobalFunction( "SetSoundVolume", laudioSetSoundVolume ); assingGlobalFunction( "SetSoundPitch", laudioSetSoundPitch ); @@ -1167,6 +1169,7 @@ void luaRegister() { assingGlobalFunction( "Vector2Distance", lmathVector2Distance ); assingGlobalFunction( "Vector2DistanceSqr", lmathVector2DistanceSqr ); assingGlobalFunction( "Vector2Angle", lmathVector2Angle ); + assingGlobalFunction( "Vector2LineAngle", lmathVector2LineAngle ); assingGlobalFunction( "Vector2Scale", lmathVector2Scale ); assingGlobalFunction( "Vector2Multiply", lmathVector2Multiply ); assingGlobalFunction( "Vector2Negate", lmathVector2Negate ); -- cgit v1.2.3