Switched to Raylib vertion 4.5. Removed some functions and added others. Main changes to camera3D.

This commit is contained in:
jussi
2023-04-06 19:19:44 +03:00
parent 2526c9732e
commit fe15e836bd
25 changed files with 744 additions and 957 deletions

View File

@@ -397,56 +397,6 @@ int laudioResumeSound( lua_State *L ) {
return 1;
}
/*
> success = RL.PlaySoundMulti( Sound sound )
Play a sound ( Using multichannel buffer pool )
- Failure return false
- Success return true
*/
int laudioPlaySoundMulti( lua_State *L ) {
if ( !lua_isnumber( L, -1 ) ) {
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.PlaySoundMulti( Sound sound )" );
lua_pushboolean( L, false );
return 1;
}
size_t soundId = lua_tointeger( L, -1 );
if ( !validSound( soundId ) ) {
lua_pushboolean( L, false );
return 1;
}
PlaySoundMulti( *state->sounds[ soundId ] );
lua_pushboolean( L, true );
return 1;
}
/*
> RL.StopSoundMulti()
Stop any sound playing ( using multichannel buffer pool )
*/
int laudioStopSoundMulti( lua_State *L ) {
StopSoundMulti();
return 0;
}
/*
> count = RL.GetSoundsPlaying()
Get number of sounds playing in the multichannel
- Success return int
*/
int laudioGetSoundsPlaying( lua_State *L ) {
lua_pushinteger( L, GetSoundsPlaying() );
return 1;
}
/*
> playing = RL.IsSoundPlaying( Sound sound )