From 49f1dad6b9deeb769e384ae547fca9f64b90bf79 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 19 Aug 2022 13:38:09 +0300 Subject: Moved to raylib 4.2.0. Renamed some directory functions to raylib 4.2.0 conventions. Removed GenMeshBinormals and GetRayCollisionModel. Sound and music pan. --- src/models.c | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) (limited to 'src/models.c') diff --git a/src/models.c b/src/models.c index fc294e0..3028459 100644 --- a/src/models.c +++ b/src/models.c @@ -1451,32 +1451,6 @@ int lmodelsGenMeshTangents( lua_State *L ) { return 1; } -/* -> success = RL_GenMeshBinormals( Mesh mesh ) - -Compute mesh binormals - -- Failure return false -- Success return true -*/ -int lmodelsGenMeshBinormals( lua_State *L ) { - if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenMeshBinormals( Mesh mesh )" ); - lua_pushboolean( L, false ); - return 1; - } - size_t meshId = lua_tointeger( L, -1 ); - - if ( !validMesh( meshId ) ) { - lua_pushboolean( L, false ); - return 1; - } - GenMeshBinormals( state->meshes[ meshId ] ); - lua_pushboolean( L, true ); - - return 1; -} - /* ## Models - Material */ @@ -2385,33 +2359,6 @@ int lmodelsGetRayCollisionBox( lua_State *L ) { return 1; } -/* -> rayCollision = RL_GetRayCollisionModel( Ray ray, Model model ) - -Get collision info between ray and model - -- Failure return nil -- Success return RayCollision -*/ -int lmodelsGetRayCollisionModel( lua_State *L ) { - if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetRayCollisionModel( Ray ray, Model model )" ); - lua_pushnil( L ); - return 1; - } - size_t modelId = lua_tointeger( L, -1 ); - lua_pop( L, 1 ); - Ray ray = uluaGetRay( L ); - - if ( !validModel( modelId ) ) { - lua_pushnil( L ); - return 1; - } - uluaPushRayCollision( L, GetRayCollisionModel( ray, *state->models[ modelId ] ) ); - - return 1; -} - /* > rayCollision = RL_GetRayCollisionMesh( Ray ray, Mesh mesh, Matrix transform ) -- cgit v1.2.3