New argument style for models.

This commit is contained in:
jussi
2023-04-10 13:09:43 +03:00
parent f4ae19ca7d
commit 8abed46dfd
6 changed files with 390 additions and 497 deletions

11
API.md
View File

@@ -3888,15 +3888,6 @@ Draw cube wires
--- ---
> success = RL.DrawCubeTexture( Texture2D texture, Vector3 position, Vector3 size, Color color )
Draw cube textured
- Failure return false
- Success return true
---
> success = RL.DrawSphere( Vector3 centerPos, float radius, Color color ) > success = RL.DrawSphere( Vector3 centerPos, float radius, Color color )
Draw sphere Draw sphere
@@ -4090,7 +4081,7 @@ Generate custom mesh from vertex attribute data and uploads it into a VAO ( if s
--- ---
> success = RL.UpdateMesh( Mesh{} mesh ) > success = RL.UpdateMesh( Mesh mesh, Mesh{} updatedMesh )
Update mesh vertex data in GPU. Update mesh vertex data in GPU.
Note! Mainly intented to be used with custom meshes. Note! Mainly intented to be used with custom meshes.

View File

@@ -2933,16 +2933,6 @@ function RL.DrawCube( position, size, color ) end
---@return any success ---@return any success
function RL.DrawCubeWires( position, size, color ) end function RL.DrawCubeWires( position, size, color ) end
---Draw cube textured
---- Failure return false
---- Success return true
---@param texture any
---@param position table
---@param size table
---@param color table
---@return any success
function RL.DrawCubeTexture( texture, position, size, color ) end
---Draw sphere ---Draw sphere
---- Failure return false ---- Failure return false
---- Success return true ---- Success return true
@@ -3152,8 +3142,9 @@ function RL.GenMeshCustom( mesh, dynamic ) end
---- Failure return false ---- Failure return false
---- Success return true ---- Success return true
---@param mesh any ---@param mesh any
---@param updatedMesh any
---@return any success ---@return any success
function RL.UpdateMesh( mesh ) end function RL.UpdateMesh( mesh, updatedMesh ) end
---Unload mesh data from CPU and GPU ---Unload mesh data from CPU and GPU
---- Failure return false ---- Failure return false

View File

@@ -1,5 +1,5 @@
Current { Current {
* New argument styles for: models, rgui, easings. * New argument styles for: rgui, easings.
* ReiLua camera3D lib. * ReiLua camera3D lib.
* Check new functions from https://github.com/raysan5/raylib/blob/master/CHANGELOG * Check new functions from https://github.com/raysan5/raylib/blob/master/CHANGELOG
} }
@@ -7,6 +7,7 @@ Current {
Backlog { Backlog {
* IsWaveReady and other Is* ready functions. * IsWaveReady and other Is* ready functions.
* Platformer example physics process for true framerate independence.
* rlgl * rlgl
* More low level functions. Could be usefull now when for example draw polygon is removed. * More low level functions. Could be usefull now when for example draw polygon is removed.
* Text * Text
@@ -34,4 +35,15 @@ Backlog {
* LoadFontEx * LoadFontEx
* LoadFontFromImage * LoadFontFromImage
* DrawText * DrawText
* DrawQuad3DTexture
* GenMeshCustom
* UpdateMesh
* DrawMeshInstanced
* LoadMaterialDefault
* CreateMaterial
* LoadModel
* LoadModelFromMesh
* SetModelMaterial
* UpdateModelAnimation
* GetRayCollisionMesh
} }

View File

@@ -15,9 +15,6 @@ int laudioPlaySound( lua_State *L );
int laudioStopSound( lua_State *L ); int laudioStopSound( lua_State *L );
int laudioPauseSound( lua_State *L ); int laudioPauseSound( lua_State *L );
int laudioResumeSound( lua_State *L ); int laudioResumeSound( lua_State *L );
// int laudioPlaySoundMulti( lua_State *L );
// int laudioStopSoundMulti( lua_State *L );
// int laudioGetSoundsPlaying( lua_State *L );
int laudioIsSoundPlaying( lua_State *L ); int laudioIsSoundPlaying( lua_State *L );
int laudioSetSoundVolume( lua_State *L ); int laudioSetSoundVolume( lua_State *L );
int laudioSetSoundPitch( lua_State *L ); int laudioSetSoundPitch( lua_State *L );

View File

@@ -11,7 +11,6 @@ int lmodelsDrawCircle3D( lua_State *L );
int lmodelsDrawTriangle3D( lua_State *L ); int lmodelsDrawTriangle3D( lua_State *L );
int lmodelsDrawCube( lua_State *L ); int lmodelsDrawCube( lua_State *L );
int lmodelsDrawCubeWires( lua_State *L ); int lmodelsDrawCubeWires( lua_State *L );
// int lmodelsDrawCubeTexture( lua_State *L );
int lmodelsDrawSphere( lua_State *L ); int lmodelsDrawSphere( lua_State *L );
int lmodelsDrawSphereEx( lua_State *L ); int lmodelsDrawSphereEx( lua_State *L );
int lmodelsDrawSphereWires( lua_State *L ); int lmodelsDrawSphereWires( lua_State *L );

File diff suppressed because it is too large Load Diff