All global variables and functions are not in global RL table. doc_parser creates also ReiLua_API.lua.
This commit is contained in:
118
src/audio.c
118
src/audio.c
@@ -58,7 +58,7 @@ static void checkWaveRealloc( int i ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_SetMasterVolume( float volume )
|
||||
> success = RL.SetMasterVolume( float volume )
|
||||
|
||||
Set master volume ( listener )
|
||||
|
||||
@@ -67,7 +67,7 @@ Set master volume ( listener )
|
||||
*/
|
||||
int laudioSetMasterVolume( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMasterVolume( float volume )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMasterVolume( float volume )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -82,7 +82,7 @@ int laudioSetMasterVolume( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> sound = RL_LoadSound( string fileName )
|
||||
> sound = RL.LoadSound( string fileName )
|
||||
|
||||
Load sound from file
|
||||
|
||||
@@ -91,7 +91,7 @@ Load sound from file
|
||||
*/
|
||||
int laudioLoadSound( lua_State *L ) {
|
||||
if ( !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadSound( string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadSound( string fileName )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -117,7 +117,7 @@ int laudioLoadSound( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> wave = RL_LoadWave( string fileName )
|
||||
> wave = RL.LoadWave( string fileName )
|
||||
|
||||
Load wave data from file
|
||||
|
||||
@@ -126,7 +126,7 @@ Load wave data from file
|
||||
*/
|
||||
int laudioLoadWave( lua_State *L ) {
|
||||
if ( !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadWave( string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadWave( string fileName )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -151,7 +151,7 @@ int laudioLoadWave( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> sound = RL_LoadSoundFromWave( Wave wave )
|
||||
> sound = RL.LoadSoundFromWave( Wave wave )
|
||||
|
||||
Load sound from wave data
|
||||
|
||||
@@ -160,7 +160,7 @@ Load sound from wave data
|
||||
*/
|
||||
int laudioLoadSoundFromWave( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadSoundFromWave( Wave wave )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadSoundFromWave( Wave wave )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ int laudioLoadSoundFromWave( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_UnloadSound( Sound sound )
|
||||
> success = RL.UnloadSound( Sound sound )
|
||||
|
||||
Unload sound
|
||||
|
||||
@@ -195,7 +195,7 @@ Unload sound
|
||||
*/
|
||||
int laudioUnloadSound( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadSound( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadSound( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -213,7 +213,7 @@ int laudioUnloadSound( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_UnloadWave( Wave wave )
|
||||
> success = RL.UnloadWave( Wave wave )
|
||||
|
||||
Unload wave data
|
||||
|
||||
@@ -222,7 +222,7 @@ Unload wave data
|
||||
*/
|
||||
int laudioUnloadWave( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadWave( Wave wave )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadWave( Wave wave )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -240,7 +240,7 @@ int laudioUnloadWave( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_ExportWave( Wave wave, string fileName )
|
||||
> success = RL.ExportWave( Wave wave, string fileName )
|
||||
|
||||
Export wave data to file, returns true on success
|
||||
|
||||
@@ -249,7 +249,7 @@ Export wave data to file, returns true on success
|
||||
*/
|
||||
int laudioExportWave( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ExportWave( Wave wave, string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ExportWave( Wave wave, string fileName )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -265,7 +265,7 @@ int laudioExportWave( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_ExportWaveAsCode( Wave wave, string fileName )
|
||||
> success = RL.ExportWaveAsCode( Wave wave, string fileName )
|
||||
|
||||
Export wave sample data to code (.h), returns true on success
|
||||
|
||||
@@ -274,7 +274,7 @@ Export wave sample data to code (.h), returns true on success
|
||||
*/
|
||||
int laudioExportWaveAsCode( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ExportWaveAsCode( Wave wave, string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ExportWaveAsCode( Wave wave, string fileName )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -294,7 +294,7 @@ int laudioExportWaveAsCode( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_PlaySound( Sound sound )
|
||||
> success = RL.PlaySound( Sound sound )
|
||||
|
||||
Play a sound
|
||||
|
||||
@@ -303,7 +303,7 @@ Play a sound
|
||||
*/
|
||||
int laudioPlaySound( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_PlaySound( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.PlaySound( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -320,7 +320,7 @@ int laudioPlaySound( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_StopSound( Sound sound )
|
||||
> success = RL.StopSound( Sound sound )
|
||||
|
||||
Stop playing a sound
|
||||
|
||||
@@ -329,7 +329,7 @@ Stop playing a sound
|
||||
*/
|
||||
int laudioStopSound( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_StopSound( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.StopSound( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -346,7 +346,7 @@ int laudioStopSound( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_PauseSound( Sound sound )
|
||||
> success = RL.PauseSound( Sound sound )
|
||||
|
||||
Pause a sound
|
||||
|
||||
@@ -355,7 +355,7 @@ Pause a sound
|
||||
*/
|
||||
int laudioPauseSound( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_PauseSound( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.PauseSound( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ int laudioPauseSound( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_ResumeSound( Sound sound )
|
||||
> success = RL.ResumeSound( Sound sound )
|
||||
|
||||
Resume a paused sound
|
||||
|
||||
@@ -381,7 +381,7 @@ Resume a paused sound
|
||||
*/
|
||||
int laudioResumeSound( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ResumeSound( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ResumeSound( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -398,7 +398,7 @@ int laudioResumeSound( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_PlaySoundMulti( Sound sound )
|
||||
> success = RL.PlaySoundMulti( Sound sound )
|
||||
|
||||
Play a sound ( Using multichannel buffer pool )
|
||||
|
||||
@@ -407,7 +407,7 @@ Play a sound ( Using multichannel buffer pool )
|
||||
*/
|
||||
int laudioPlaySoundMulti( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_PlaySoundMulti( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.PlaySoundMulti( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -424,7 +424,7 @@ int laudioPlaySoundMulti( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_StopSoundMulti()
|
||||
> RL.StopSoundMulti()
|
||||
|
||||
Stop any sound playing ( using multichannel buffer pool )
|
||||
*/
|
||||
@@ -435,7 +435,7 @@ int laudioStopSoundMulti( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> count = RL_GetSoundsPlaying()
|
||||
> count = RL.GetSoundsPlaying()
|
||||
|
||||
Get number of sounds playing in the multichannel
|
||||
|
||||
@@ -448,7 +448,7 @@ int laudioGetSoundsPlaying( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> playing = RL_IsSoundPlaying( Sound sound )
|
||||
> playing = RL.IsSoundPlaying( Sound sound )
|
||||
|
||||
Check if a sound is currently playing
|
||||
|
||||
@@ -457,7 +457,7 @@ Check if a sound is currently playing
|
||||
*/
|
||||
int laudioIsSoundPlaying( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsSoundPlaying( Sound sound )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsSoundPlaying( Sound sound )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -473,7 +473,7 @@ int laudioIsSoundPlaying( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SetSoundVolume( Sound sound, float volume )
|
||||
> success = RL.SetSoundVolume( Sound sound, float volume )
|
||||
|
||||
Set volume for a sound ( 1.0 is max level )
|
||||
|
||||
@@ -482,7 +482,7 @@ Set volume for a sound ( 1.0 is max level )
|
||||
*/
|
||||
int laudioSetSoundVolume( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetSoundVolume( Sound sound, float volume )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetSoundVolume( Sound sound, float volume )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -497,7 +497,7 @@ int laudioSetSoundVolume( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SetSoundPitch( Sound sound, float pitch )
|
||||
> success = RL.SetSoundPitch( Sound sound, float pitch )
|
||||
|
||||
Set pitch for a sound ( 1.0 is base level )
|
||||
|
||||
@@ -506,7 +506,7 @@ Set pitch for a sound ( 1.0 is base level )
|
||||
*/
|
||||
int laudioSetSoundPitch( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetSoundPitch( Sound sound, float pitch )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetSoundPitch( Sound sound, float pitch )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -521,7 +521,7 @@ int laudioSetSoundPitch( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SetSoundPan( Sound sound, float pan )
|
||||
> success = RL.SetSoundPan( Sound sound, float pan )
|
||||
|
||||
Set pan for a sound ( 0.5 is center )
|
||||
|
||||
@@ -530,7 +530,7 @@ Set pan for a sound ( 0.5 is center )
|
||||
*/
|
||||
int laudioSetSoundPan( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetSoundPan( Sound sound, float pitch )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetSoundPan( Sound sound, float pitch )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -545,7 +545,7 @@ int laudioSetSoundPan( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_WaveFormat( Wave wave, int sampleRate, int sampleSize, int channels )
|
||||
> success = RL.WaveFormat( Wave wave, int sampleRate, int sampleSize, int channels )
|
||||
|
||||
Convert wave data to desired format
|
||||
|
||||
@@ -554,7 +554,7 @@ Convert wave data to desired format
|
||||
*/
|
||||
int laudioWaveFormat( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_WaveFormat( Wave wave, int sampleRate, int sampleSize, int channels )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.WaveFormat( Wave wave, int sampleRate, int sampleSize, int channels )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -574,7 +574,7 @@ int laudioWaveFormat( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> wave = RL_WaveCopy( Wave wave )
|
||||
> wave = RL.WaveCopy( Wave wave )
|
||||
|
||||
Copy a wave to a new wave
|
||||
|
||||
@@ -583,7 +583,7 @@ Copy a wave to a new wave
|
||||
*/
|
||||
int laudioWaveCopy( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_WaveCopy( Wave wave )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.WaveCopy( Wave wave )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -609,7 +609,7 @@ int laudioWaveCopy( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_WaveCrop( Wave wave, int initSample, int finalSample )
|
||||
> success = RL.WaveCrop( Wave wave, int initSample, int finalSample )
|
||||
|
||||
Crop a wave to defined samples range
|
||||
|
||||
@@ -618,7 +618,7 @@ Crop a wave to defined samples range
|
||||
*/
|
||||
int laudioWaveCrop( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_WaveCrop( Wave wave, int initSample, int finalSample )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.WaveCrop( Wave wave, int initSample, int finalSample )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -641,7 +641,7 @@ int laudioWaveCrop( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_LoadMusicStream( string fileName )
|
||||
> success = RL.LoadMusicStream( string fileName )
|
||||
|
||||
Load music stream from file
|
||||
|
||||
@@ -650,7 +650,7 @@ Load music stream from file
|
||||
*/
|
||||
int laudioLoadMusicStream( lua_State *L ) {
|
||||
if ( !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadMusicStream( string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadMusicStream( string fileName )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -668,7 +668,7 @@ int laudioLoadMusicStream( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_PlayMusicStream()
|
||||
> RL.PlayMusicStream()
|
||||
|
||||
Start music playing
|
||||
*/
|
||||
@@ -679,7 +679,7 @@ int laudioPlayMusicStream( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> playing = RL_PlayMusicStream()
|
||||
> playing = RL.IsMusicStreamPlaying()
|
||||
|
||||
Check if music is playing
|
||||
|
||||
@@ -692,7 +692,7 @@ int laudioIsMusicStreamPlaying( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_StopMusicStream()
|
||||
> RL.StopMusicStream()
|
||||
|
||||
Stop music playing
|
||||
*/
|
||||
@@ -703,7 +703,7 @@ int laudioStopMusicStream( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_PauseMusicStream()
|
||||
> RL.PauseMusicStream()
|
||||
|
||||
Pause music playing
|
||||
*/
|
||||
@@ -714,7 +714,7 @@ int laudioPauseMusicStream( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_ResumeMusicStream()
|
||||
> RL.ResumeMusicStream()
|
||||
|
||||
Resume playing paused music
|
||||
*/
|
||||
@@ -725,7 +725,7 @@ int laudioResumeMusicStream( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SeekMusicStream( float position )
|
||||
> success = RL.SeekMusicStream( float position )
|
||||
|
||||
Seek music to a position ( in seconds )
|
||||
|
||||
@@ -734,7 +734,7 @@ Seek music to a position ( in seconds )
|
||||
*/
|
||||
int laudioSeekMusicStream( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SeekMusicStream( float position )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SeekMusicStream( float position )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -745,7 +745,7 @@ int laudioSeekMusicStream( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SetMusicVolume( float volume )
|
||||
> success = RL.SetMusicVolume( float volume )
|
||||
|
||||
Set volume for music ( 1.0 is max level )
|
||||
|
||||
@@ -754,7 +754,7 @@ Set volume for music ( 1.0 is max level )
|
||||
*/
|
||||
int laudioSetMusicVolume( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMusicVolume( float volume )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMusicVolume( float volume )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -765,7 +765,7 @@ int laudioSetMusicVolume( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SetMusicPitch( float pitch )
|
||||
> success = RL.SetMusicPitch( float pitch )
|
||||
|
||||
Set pitch for a music ( 1.0 is base level )
|
||||
|
||||
@@ -774,7 +774,7 @@ Set pitch for a music ( 1.0 is base level )
|
||||
*/
|
||||
int laudioSetMusicPitch( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMusicPitch( float pitch )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMusicPitch( float pitch )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -785,7 +785,7 @@ int laudioSetMusicPitch( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_SetMusicPan( float pan )
|
||||
> success = RL.SetMusicPan( float pan )
|
||||
|
||||
Set pan for a music ( 0.5 is center )
|
||||
|
||||
@@ -794,7 +794,7 @@ Set pan for a music ( 0.5 is center )
|
||||
*/
|
||||
int laudioSetMusicPan( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMusicPan( float pan )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMusicPan( float pan )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -805,7 +805,7 @@ int laudioSetMusicPan( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> length = RL_GetMusicTimeLength()
|
||||
> length = RL.GetMusicTimeLength()
|
||||
|
||||
Get music time length ( in seconds )
|
||||
|
||||
@@ -818,7 +818,7 @@ int laudioGetMusicTimeLength( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> played = RL_GetMusicTimePlayed()
|
||||
> played = RL.GetMusicTimePlayed()
|
||||
|
||||
Get current music time played ( in seconds )
|
||||
|
||||
|
||||
542
src/core.c
542
src/core.c
File diff suppressed because it is too large
Load Diff
100
src/easings.c
100
src/easings.c
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseLinear( float t, float b, float c, float d )
|
||||
> value = RL.EaseLinear( float t, float b, float c, float d )
|
||||
|
||||
Ease linear
|
||||
|
||||
@@ -18,7 +18,7 @@ Ease linear
|
||||
*/
|
||||
int leasingsEaseLinear( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseLinear( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseLinear( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -32,7 +32,7 @@ int leasingsEaseLinear( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseSineIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseSineIn( float t, float b, float c, float d )
|
||||
|
||||
Ease sine in
|
||||
|
||||
@@ -41,7 +41,7 @@ Ease sine in
|
||||
*/
|
||||
int leasingsEaseSineIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseSineIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseSineIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -51,7 +51,7 @@ int leasingsEaseSineIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseSineOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseSineOut( float t, float b, float c, float d )
|
||||
|
||||
Ease sine out
|
||||
|
||||
@@ -60,7 +60,7 @@ Ease sine out
|
||||
*/
|
||||
int leasingsEaseSineOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseSineOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseSineOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -70,7 +70,7 @@ int leasingsEaseSineOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseSineInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseSineInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease sine in out
|
||||
|
||||
@@ -79,7 +79,7 @@ Ease sine in out
|
||||
*/
|
||||
int leasingsEaseSineInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseSineInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseSineInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ int leasingsEaseSineInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseCircIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseCircIn( float t, float b, float c, float d )
|
||||
|
||||
Ease circle in
|
||||
|
||||
@@ -102,7 +102,7 @@ Ease circle in
|
||||
*/
|
||||
int leasingsEaseCircIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseCircIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseCircIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -112,7 +112,7 @@ int leasingsEaseCircIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseCircOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseCircOut( float t, float b, float c, float d )
|
||||
|
||||
Ease circle out
|
||||
|
||||
@@ -121,7 +121,7 @@ Ease circle out
|
||||
*/
|
||||
int leasingsEaseCircOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseCircOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseCircOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ int leasingsEaseCircOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseCircInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseCircInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease circle in out
|
||||
|
||||
@@ -140,7 +140,7 @@ Ease circle in out
|
||||
*/
|
||||
int leasingsEaseCircInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseCircInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseCircInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -154,7 +154,7 @@ int leasingsEaseCircInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseCubicIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseCubicIn( float t, float b, float c, float d )
|
||||
|
||||
Ease cubic in
|
||||
|
||||
@@ -163,7 +163,7 @@ Ease cubic in
|
||||
*/
|
||||
int leasingsEaseCubicIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseCubicIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseCubicIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -173,7 +173,7 @@ int leasingsEaseCubicIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseCubicOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseCubicOut( float t, float b, float c, float d )
|
||||
|
||||
Ease cubic out
|
||||
|
||||
@@ -182,7 +182,7 @@ Ease cubic out
|
||||
*/
|
||||
int leasingsEaseCubicOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseCubicOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseCubicOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -192,7 +192,7 @@ int leasingsEaseCubicOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseCubicInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseCubicInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease cubic in out
|
||||
|
||||
@@ -201,7 +201,7 @@ Ease cubic in out
|
||||
*/
|
||||
int leasingsEaseCubicInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseCubicInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseCubicInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -215,7 +215,7 @@ int leasingsEaseCubicInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseQuadIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseQuadIn( float t, float b, float c, float d )
|
||||
|
||||
Ease quadratic in
|
||||
|
||||
@@ -224,7 +224,7 @@ Ease quadratic in
|
||||
*/
|
||||
int leasingsEaseQuadIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseQuadIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseQuadIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -234,7 +234,7 @@ int leasingsEaseQuadIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseQuadOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseQuadOut( float t, float b, float c, float d )
|
||||
|
||||
Ease quadratic out
|
||||
|
||||
@@ -243,7 +243,7 @@ Ease quadratic out
|
||||
*/
|
||||
int leasingsEaseQuadOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseQuadOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseQuadOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -253,7 +253,7 @@ int leasingsEaseQuadOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseQuadInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseQuadInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease quadratic in out
|
||||
|
||||
@@ -262,7 +262,7 @@ Ease quadratic in out
|
||||
*/
|
||||
int leasingsEaseQuadInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseQuadInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseQuadInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ int leasingsEaseQuadInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseExpoIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseExpoIn( float t, float b, float c, float d )
|
||||
|
||||
Ease exponential in
|
||||
|
||||
@@ -285,7 +285,7 @@ Ease exponential in
|
||||
*/
|
||||
int leasingsEaseExpoIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseExpoIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseExpoIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -295,7 +295,7 @@ int leasingsEaseExpoIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseExpoOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseExpoOut( float t, float b, float c, float d )
|
||||
|
||||
Ease exponential out
|
||||
|
||||
@@ -304,7 +304,7 @@ Ease exponential out
|
||||
*/
|
||||
int leasingsEaseExpoOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseExpoOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseExpoOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -314,7 +314,7 @@ int leasingsEaseExpoOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseExpoInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseExpoInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease exponential in out
|
||||
|
||||
@@ -323,7 +323,7 @@ Ease exponential in out
|
||||
*/
|
||||
int leasingsEaseExpoInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseExpoInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseExpoInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -337,7 +337,7 @@ int leasingsEaseExpoInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseBackIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseBackIn( float t, float b, float c, float d )
|
||||
|
||||
Ease back in
|
||||
|
||||
@@ -346,7 +346,7 @@ Ease back in
|
||||
*/
|
||||
int leasingsEaseBackIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseBackIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseBackIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -356,7 +356,7 @@ int leasingsEaseBackIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseBackOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseBackOut( float t, float b, float c, float d )
|
||||
|
||||
Ease back out
|
||||
|
||||
@@ -365,7 +365,7 @@ Ease back out
|
||||
*/
|
||||
int leasingsEaseBackOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseBackOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseBackOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -375,7 +375,7 @@ int leasingsEaseBackOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseBackInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseBackInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease back in out
|
||||
|
||||
@@ -384,7 +384,7 @@ Ease back in out
|
||||
*/
|
||||
int leasingsEaseBackInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseBackInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseBackInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -398,7 +398,7 @@ int leasingsEaseBackInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseBounceIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseBounceIn( float t, float b, float c, float d )
|
||||
|
||||
Ease bounce in
|
||||
|
||||
@@ -407,7 +407,7 @@ Ease bounce in
|
||||
*/
|
||||
int leasingsEaseBounceIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseBounceIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseBounceIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -417,7 +417,7 @@ int leasingsEaseBounceIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseBounceOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseBounceOut( float t, float b, float c, float d )
|
||||
|
||||
Ease bounce out
|
||||
|
||||
@@ -426,7 +426,7 @@ Ease bounce out
|
||||
*/
|
||||
int leasingsEaseBounceOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseBounceOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseBounceOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -436,7 +436,7 @@ int leasingsEaseBounceOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseBounceInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseBounceInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease bounce in out
|
||||
|
||||
@@ -445,7 +445,7 @@ Ease bounce in out
|
||||
*/
|
||||
int leasingsEaseBounceInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseBounceInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseBounceInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -459,7 +459,7 @@ int leasingsEaseBounceInOut( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> value = RL_EaseElasticIn( float t, float b, float c, float d )
|
||||
> value = RL.EaseElasticIn( float t, float b, float c, float d )
|
||||
|
||||
Ease elastic in
|
||||
|
||||
@@ -468,7 +468,7 @@ Ease elastic in
|
||||
*/
|
||||
int leasingsEaseElasticIn( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseElasticIn( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseElasticIn( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -478,7 +478,7 @@ int leasingsEaseElasticIn( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseElasticOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseElasticOut( float t, float b, float c, float d )
|
||||
|
||||
Ease elastic out
|
||||
|
||||
@@ -487,7 +487,7 @@ Ease elastic out
|
||||
*/
|
||||
int leasingsEaseElasticOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseElasticOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseElasticOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -497,7 +497,7 @@ int leasingsEaseElasticOut( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_EaseElasticInOut( float t, float b, float c, float d )
|
||||
> value = RL.EaseElasticInOut( float t, float b, float c, float d )
|
||||
|
||||
Ease elastic in out
|
||||
|
||||
@@ -506,7 +506,7 @@ Ease elastic in out
|
||||
*/
|
||||
int leasingsEaseElasticInOut( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_EaseElasticInOut( float t, float b, float c, float d )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.EaseElasticInOut( float t, float b, float c, float d )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ bool validLight( size_t id ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> light = RL_CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader )
|
||||
> light = RL.CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader )
|
||||
|
||||
Create a light and get shader locations
|
||||
|
||||
@@ -46,7 +46,7 @@ Create a light and get shader locations
|
||||
*/
|
||||
int llightsCreateLight( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -5 ) || !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ int llightsCreateLight( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_UpdateLightValues( Shader shader, Light light )
|
||||
> success = RL.UpdateLightValues( Shader shader, Light light )
|
||||
|
||||
Send light properties to shader
|
||||
|
||||
@@ -85,7 +85,7 @@ Send light properties to shader
|
||||
*/
|
||||
int llightsUpdateLightValues( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UpdateLightValues( Shader shader, Light light )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateLightValues( Shader shader, Light light )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
|
||||
1222
src/lua_core.c
1222
src/lua_core.c
File diff suppressed because it is too large
Load Diff
273
src/models.c
273
src/models.c
File diff suppressed because it is too large
Load Diff
190
src/rgui.c
190
src/rgui.c
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
> RL_GuiEnable()
|
||||
> RL.GuiEnable()
|
||||
|
||||
Enable gui controls ( global state )
|
||||
*/
|
||||
@@ -22,7 +22,7 @@ int lguiGuiEnable( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_GuiDisable()
|
||||
> RL.GuiDisable()
|
||||
|
||||
Disable gui controls ( global state )
|
||||
*/
|
||||
@@ -33,7 +33,7 @@ int lguiGuiDisable( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_GuiLock()
|
||||
> RL.GuiLock()
|
||||
|
||||
Lock gui controls ( global state )
|
||||
*/
|
||||
@@ -44,7 +44,7 @@ int lguiGuiLock( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_GuiUnlock()
|
||||
> RL.GuiUnlock()
|
||||
|
||||
Unlock gui controls ( global state )
|
||||
*/
|
||||
@@ -55,7 +55,7 @@ int lguiGuiUnlock( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> locked = RL_GuiIsLocked()
|
||||
> locked = RL.GuiIsLocked()
|
||||
|
||||
Check if gui is locked ( global state )
|
||||
|
||||
@@ -68,7 +68,7 @@ int lguiGuiIsLocked( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiFade( float alpha )
|
||||
> success = RL.GuiFade( float alpha )
|
||||
|
||||
Set gui controls alpha ( global state ), alpha goes from 0.0f to 1.0f
|
||||
|
||||
@@ -77,7 +77,7 @@ Set gui controls alpha ( global state ), alpha goes from 0.0f to 1.0f
|
||||
*/
|
||||
int lguiGuiFade( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiFade( float alpha )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiFade( float alpha )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ int lguiGuiFade( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiSetState( int state )
|
||||
> success = RL.GuiSetState( int state )
|
||||
|
||||
Set gui state ( global state )
|
||||
|
||||
@@ -97,7 +97,7 @@ Set gui state ( global state )
|
||||
*/
|
||||
int lguiGuiSetState( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSetState( int state )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSetState( int state )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -108,7 +108,7 @@ int lguiGuiSetState( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> state = RL_GuiGetState()
|
||||
> state = RL.GuiGetState()
|
||||
|
||||
Get gui state ( global state )
|
||||
|
||||
@@ -125,7 +125,7 @@ int lguiGuiGetState( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_GuiSetFont( Font font )
|
||||
> success = RL.GuiSetFont( Font font )
|
||||
|
||||
Set gui custom font ( Global state )
|
||||
|
||||
@@ -134,7 +134,7 @@ Set gui custom font ( Global state )
|
||||
*/
|
||||
int lguiGuiSetFont( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSetFont( Font font )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSetFont( Font font )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -149,7 +149,7 @@ int lguiGuiSetFont( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_GuiSetStyle( int control, int property, int value )
|
||||
> success = RL.GuiSetStyle( int control, int property, int value )
|
||||
|
||||
Set one style property
|
||||
|
||||
@@ -158,7 +158,7 @@ Set one style property
|
||||
*/
|
||||
int lguiGuiSetStyle( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSetStyle( int control, int property, int value )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSetStyle( int control, int property, int value )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -169,7 +169,7 @@ int lguiGuiSetStyle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_GuiGetStyle( int control, int property )
|
||||
> value = RL.GuiGetStyle( int control, int property )
|
||||
|
||||
Get one style property
|
||||
|
||||
@@ -178,7 +178,7 @@ Get one style property
|
||||
*/
|
||||
int lguiGuiGetStyle( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiGetStyle( int control, int property )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiGetStyle( int control, int property )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -188,7 +188,7 @@ int lguiGuiGetStyle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiLoadStyle( int control, int property )
|
||||
> success = RL.GuiLoadStyle( int control, int property )
|
||||
|
||||
Load style file over global style variable ( .rgs )
|
||||
|
||||
@@ -197,7 +197,7 @@ Load style file over global style variable ( .rgs )
|
||||
*/
|
||||
int lguiGuiLoadStyle( lua_State *L ) {
|
||||
if ( !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiLoadStyle( string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiLoadStyle( string fileName )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ int lguiGuiLoadStyle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> RL_GuiLoadStyleDefault()
|
||||
> RL.GuiLoadStyleDefault()
|
||||
|
||||
Load style default over global style
|
||||
*/
|
||||
@@ -223,7 +223,7 @@ int lguiGuiLoadStyleDefault( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> state = RL_GuiWindowBox( Rectangle bounds, string title )
|
||||
> state = RL.GuiWindowBox( Rectangle bounds, string title )
|
||||
|
||||
Window Box control, shows a window that can be closed
|
||||
|
||||
@@ -232,7 +232,7 @@ Window Box control, shows a window that can be closed
|
||||
*/
|
||||
int lguiGuiWindowBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiWindowBox( Rectangle bounds, string title )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiWindowBox( Rectangle bounds, string title )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -247,7 +247,7 @@ int lguiGuiWindowBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiGroupBox( Rectangle bounds, string text )
|
||||
> success = RL.GuiGroupBox( Rectangle bounds, string text )
|
||||
|
||||
Group Box control with text name
|
||||
|
||||
@@ -256,7 +256,7 @@ Group Box control with text name
|
||||
*/
|
||||
int lguiGuiGroupBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiGroupBox( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiGroupBox( Rectangle bounds, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -272,7 +272,7 @@ int lguiGuiGroupBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiLine( Rectangle bounds, string text )
|
||||
> success = RL.GuiLine( Rectangle bounds, string text )
|
||||
|
||||
Line separator control, could contain text
|
||||
|
||||
@@ -281,7 +281,7 @@ Line separator control, could contain text
|
||||
*/
|
||||
int lguiGuiLine( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiLine( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiLine( Rectangle bounds, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -297,7 +297,7 @@ int lguiGuiLine( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiPanel( Rectangle bounds, string text )
|
||||
> success = RL.GuiPanel( Rectangle bounds, string text )
|
||||
|
||||
Panel control, useful to group controls
|
||||
|
||||
@@ -306,7 +306,7 @@ Panel control, useful to group controls
|
||||
*/
|
||||
int lguiGuiPanel( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiPanel( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiPanel( Rectangle bounds, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ int lguiGuiPanel( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> view, scroll = RL_GuiScrollPanel( Rectangle bounds, string text, Rectangle content, Vector2 scroll )
|
||||
> view, scroll = RL.GuiScrollPanel( Rectangle bounds, string text, Rectangle content, Vector2 scroll )
|
||||
|
||||
Scroll Panel control
|
||||
|
||||
@@ -331,7 +331,7 @@ Scroll Panel control
|
||||
*/
|
||||
int lguiGuiScrollPanel( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiScrollPanel( Rectangle bounds, string text, Rectangle content, Vector2 scroll )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiScrollPanel( Rectangle bounds, string text, Rectangle content, Vector2 scroll )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -355,7 +355,7 @@ int lguiGuiScrollPanel( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_GuiLabel( Rectangle bounds, string text )
|
||||
> success = RL.GuiLabel( Rectangle bounds, string text )
|
||||
|
||||
Label control, shows text
|
||||
|
||||
@@ -364,7 +364,7 @@ Label control, shows text
|
||||
*/
|
||||
int lguiGuiLabel( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiLabel( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiLabel( Rectangle bounds, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -380,7 +380,7 @@ int lguiGuiLabel( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> clicked = RL_GuiButton( Rectangle bounds, string text )
|
||||
> clicked = RL.GuiButton( Rectangle bounds, string text )
|
||||
|
||||
Button control, returns true when clicked
|
||||
|
||||
@@ -389,7 +389,7 @@ Button control, returns true when clicked
|
||||
*/
|
||||
int lguiGuiButton( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiButton( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiButton( Rectangle bounds, string text )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -404,7 +404,7 @@ int lguiGuiButton( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> clicked = RL_GuiLabelButton( Rectangle bounds, string text )
|
||||
> clicked = RL.GuiLabelButton( Rectangle bounds, string text )
|
||||
|
||||
Label button control, show true when clicked
|
||||
|
||||
@@ -413,7 +413,7 @@ Label button control, show true when clicked
|
||||
*/
|
||||
int lguiGuiLabelButton( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiLabelButton( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiLabelButton( Rectangle bounds, string text )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -428,7 +428,7 @@ int lguiGuiLabelButton( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> active = RL_GuiToggle( Rectangle bounds, string text, bool active )
|
||||
> active = RL.GuiToggle( Rectangle bounds, string text, bool active )
|
||||
|
||||
Toggle Button control, returns true when active
|
||||
|
||||
@@ -437,7 +437,7 @@ Toggle Button control, returns true when active
|
||||
*/
|
||||
int lguiGuiToggle( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiToggle( Rectangle bounds, string text, bool active )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiToggle( Rectangle bounds, string text, bool active )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -454,7 +454,7 @@ int lguiGuiToggle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> index = RL_GuiToggleGroup( Rectangle bounds, string text, int active )
|
||||
> index = RL.GuiToggleGroup( Rectangle bounds, string text, int active )
|
||||
|
||||
Toggle Group control, returns active toggle index
|
||||
|
||||
@@ -463,7 +463,7 @@ Toggle Group control, returns active toggle index
|
||||
*/
|
||||
int lguiGuiToggleGroup( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiToggleGroup( Rectangle bounds, string text, bool active )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiToggleGroup( Rectangle bounds, string text, bool active )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -480,7 +480,7 @@ int lguiGuiToggleGroup( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> active = RL_GuiCheckBox( Rectangle bounds, string text, bool checked )
|
||||
> active = RL.GuiCheckBox( Rectangle bounds, string text, bool checked )
|
||||
|
||||
Check Box control, returns true when active
|
||||
|
||||
@@ -489,7 +489,7 @@ Check Box control, returns true when active
|
||||
*/
|
||||
int lguiGuiCheckBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiCheckBox( Rectangle bounds, string text, bool checked )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiCheckBox( Rectangle bounds, string text, bool checked )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -506,7 +506,7 @@ int lguiGuiCheckBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> active = RL_GuiComboBox( Rectangle bounds, string text, int active )
|
||||
> active = RL.GuiComboBox( Rectangle bounds, string text, int active )
|
||||
|
||||
Combo Box control, returns selected item index
|
||||
|
||||
@@ -515,7 +515,7 @@ Combo Box control, returns selected item index
|
||||
*/
|
||||
int lguiGuiComboBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiComboBox( Rectangle bounds, string text, int active )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiComboBox( Rectangle bounds, string text, int active )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -532,7 +532,7 @@ int lguiGuiComboBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> pressed, text = RL_GuiTextBox( Rectangle bounds, string text, int textSize, bool editMode )
|
||||
> pressed, text = RL.GuiTextBox( Rectangle bounds, string text, int textSize, bool editMode )
|
||||
|
||||
Text Box control, updates input text
|
||||
|
||||
@@ -541,7 +541,7 @@ Text Box control, updates input text
|
||||
*/
|
||||
int lguiGuiTextBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiTextBox( Rectangle bounds, string text, int textSize, bool editMode )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiTextBox( Rectangle bounds, string text, int textSize, bool editMode )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -561,7 +561,7 @@ int lguiGuiTextBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> pressed, text = RL_GuiTextBoxMulti( Rectangle bounds, string text, int textSize, bool editMode )
|
||||
> pressed, text = RL.GuiTextBoxMulti( Rectangle bounds, string text, int textSize, bool editMode )
|
||||
|
||||
Text Box control with multiple lines
|
||||
|
||||
@@ -570,7 +570,7 @@ Text Box control with multiple lines
|
||||
*/
|
||||
int lguiGuiTextBoxMulti( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiTextBoxMulti( Rectangle bounds, string text, int textSize, bool editMode )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiTextBoxMulti( Rectangle bounds, string text, int textSize, bool editMode )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -590,7 +590,7 @@ int lguiGuiTextBoxMulti( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> pressed, value = RL_GuiSpinner( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )
|
||||
> pressed, value = RL.GuiSpinner( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )
|
||||
|
||||
Spinner control, returns selected value
|
||||
|
||||
@@ -600,7 +600,7 @@ Spinner control, returns selected value
|
||||
int lguiGuiSpinner( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isstring( L, -5 ) || !lua_isnumber( L, -4 )
|
||||
|| !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSpinner( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSpinner( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -624,7 +624,7 @@ int lguiGuiSpinner( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> pressed, value = RL_GuiValueBox( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )
|
||||
> pressed, value = RL.GuiValueBox( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )
|
||||
|
||||
Value Box control, updates input text with numbers
|
||||
|
||||
@@ -634,7 +634,7 @@ Value Box control, updates input text with numbers
|
||||
int lguiGuiValueBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isstring( L, -5 ) || !lua_isnumber( L, -4 )
|
||||
|| !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiValueBox( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiValueBox( Rectangle bounds, string text, int value, int minValue, int maxValue, bool editMode )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -658,7 +658,7 @@ int lguiGuiValueBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_GuiSlider( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )
|
||||
> value = RL.GuiSlider( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )
|
||||
|
||||
Slider control, returns selected value
|
||||
|
||||
@@ -668,7 +668,7 @@ Slider control, returns selected value
|
||||
int lguiGuiSlider( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isstring( L, -5 ) || !lua_isstring( L, -4 )
|
||||
|| !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSlider( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSlider( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -692,7 +692,7 @@ int lguiGuiSlider( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_GuiSliderBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )
|
||||
> value = RL.GuiSliderBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )
|
||||
|
||||
Slider Bar control, returns selected value
|
||||
|
||||
@@ -702,7 +702,7 @@ Slider Bar control, returns selected value
|
||||
int lguiGuiSliderBar( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isstring( L, -5 ) || !lua_isstring( L, -4 )
|
||||
|| !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSliderBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSliderBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -726,7 +726,7 @@ int lguiGuiSliderBar( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_GuiProgressBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )
|
||||
> value = RL.GuiProgressBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )
|
||||
|
||||
Progress Bar control, shows current progress value
|
||||
|
||||
@@ -736,7 +736,7 @@ Progress Bar control, shows current progress value
|
||||
int lguiGuiProgressBar( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isstring( L, -5 ) || !lua_isstring( L, -4 )
|
||||
|| !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiProgressBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiProgressBar( Rectangle bounds, string textLeft, string textRight, float value, float minValue, float maxValue )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -760,7 +760,7 @@ int lguiGuiProgressBar( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_GuiScrollBar( Rectangle bounds, int value, int minValue, int maxValue )
|
||||
> value = RL.GuiScrollBar( Rectangle bounds, int value, int minValue, int maxValue )
|
||||
|
||||
Scroll Bar control
|
||||
|
||||
@@ -769,7 +769,7 @@ Scroll Bar control
|
||||
*/
|
||||
int lguiGuiScrollBar( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiScrollBar( Rectangle bounds, int value, int minValue, int maxValue )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiScrollBar( Rectangle bounds, int value, int minValue, int maxValue )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -787,7 +787,7 @@ int lguiGuiScrollBar( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> pressed, item = RL_GuiDropdownBox( Rectangle bounds, string text, int active, bool editMode )
|
||||
> pressed, item = RL.GuiDropdownBox( Rectangle bounds, string text, int active, bool editMode )
|
||||
|
||||
Dropdown Box control, returns selected item
|
||||
|
||||
@@ -796,7 +796,7 @@ Dropdown Box control, returns selected item
|
||||
*/
|
||||
int lguiGuiDropdownBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isboolean( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiDropdownBox( Rectangle bounds, string text, int active, bool editMode )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiDropdownBox( Rectangle bounds, string text, int active, bool editMode )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -816,7 +816,7 @@ int lguiGuiDropdownBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiStatusBar( Rectangle bounds, string text )
|
||||
> success = RL.GuiStatusBar( Rectangle bounds, string text )
|
||||
|
||||
Status Bar control, shows info text
|
||||
|
||||
@@ -825,7 +825,7 @@ Status Bar control, shows info text
|
||||
*/
|
||||
int lguiGuiStatusBar( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiStatusBar( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiStatusBar( Rectangle bounds, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -841,7 +841,7 @@ int lguiGuiStatusBar( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiDummyRec( Rectangle bounds, string text )
|
||||
> success = RL.GuiDummyRec( Rectangle bounds, string text )
|
||||
|
||||
Dummy control for placeholders
|
||||
|
||||
@@ -850,7 +850,7 @@ Dummy control for placeholders
|
||||
*/
|
||||
int lguiGuiDummyRec( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiDummyRec( Rectangle bounds, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiDummyRec( Rectangle bounds, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -866,7 +866,7 @@ int lguiGuiDummyRec( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> cell = RL_GuiGrid( Rectangle bounds, string text, float spacing, int subdivs )
|
||||
> cell = RL.GuiGrid( Rectangle bounds, string text, float spacing, int subdivs )
|
||||
|
||||
Grid control, returns mouse cell position
|
||||
|
||||
@@ -875,7 +875,7 @@ Grid control, returns mouse cell position
|
||||
*/
|
||||
int lguiGuiGrid( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiGrid( Rectangle bounds, string text, float spacing, int subdivs )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiGrid( Rectangle bounds, string text, float spacing, int subdivs )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -898,7 +898,7 @@ int lguiGuiGrid( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> itemIndex, scrollIndex = RL_GuiListView( Rectangle bounds, string text, int scrollIndex, int active )
|
||||
> itemIndex, scrollIndex = RL.GuiListView( Rectangle bounds, string text, int scrollIndex, int active )
|
||||
|
||||
List View control, returns selected list item index and scroll index
|
||||
|
||||
@@ -907,7 +907,7 @@ List View control, returns selected list item index and scroll index
|
||||
*/
|
||||
int lguiGuiListView( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiListView( Rectangle bounds, string text, int scrollIndex, int active )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiListView( Rectangle bounds, string text, int scrollIndex, int active )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -927,7 +927,7 @@ int lguiGuiListView( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> itemIndex, scrollIndex, focus = RL_GuiListViewEx( Rectangle bounds, string text, int focus, int scrollIndex, int active )
|
||||
> itemIndex, scrollIndex, focus = RL.GuiListViewEx( Rectangle bounds, string text, int focus, int scrollIndex, int active )
|
||||
|
||||
List View with extended parameters, returns selected list item index, scroll index and focus
|
||||
|
||||
@@ -937,7 +937,7 @@ List View with extended parameters, returns selected list item index, scroll ind
|
||||
int lguiGuiListViewEx( lua_State *L ) {
|
||||
if ( !lua_istable( L, -5 ) || !lua_isstring( L, -4 ) || !lua_isnumber( L, -3 )
|
||||
|| !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiListViewEx( Rectangle bounds, string text, int focus, int scrollIndex, int active )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiListViewEx( Rectangle bounds, string text, int focus, int scrollIndex, int active )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -960,7 +960,7 @@ int lguiGuiListViewEx( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> buttonIndex = RL_GuiMessageBox( Rectangle bounds, string title, string message, string buttons )
|
||||
> buttonIndex = RL.GuiMessageBox( Rectangle bounds, string title, string message, string buttons )
|
||||
|
||||
Message Box control, displays a message, returns button index ( 0 is x button )
|
||||
|
||||
@@ -969,7 +969,7 @@ Message Box control, displays a message, returns button index ( 0 is x button )
|
||||
*/
|
||||
int lguiGuiMessageBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiMessageBox( Rectangle bounds, string title, string message, string buttons )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiMessageBox( Rectangle bounds, string title, string message, string buttons )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -990,7 +990,7 @@ int lguiGuiMessageBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> buttonIndex, text, secretViewActive = RL_GuiTextInputBox( Rectangle bounds, string title, string message, string buttons, string text, int textMaxSize, int secretViewActive )
|
||||
> buttonIndex, text, secretViewActive = RL.GuiTextInputBox( Rectangle bounds, string title, string message, string buttons, string text, int textMaxSize, int secretViewActive )
|
||||
|
||||
Text Input Box control, ask for text, supports secret
|
||||
|
||||
@@ -999,7 +999,7 @@ Text Input Box control, ask for text, supports secret
|
||||
*/
|
||||
int lguiGuiTextInputBox( lua_State *L ) {
|
||||
if ( !lua_istable( L, -7 ) || !lua_isstring( L, -6 ) || !lua_isstring( L, -5 ) || !lua_isstring( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiTextInputBox( Rectangle bounds, string title, string message, string buttons, string text, int textMaxSize, int secretViewActive )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiTextInputBox( Rectangle bounds, string title, string message, string buttons, string text, int textMaxSize, int secretViewActive )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1029,7 +1029,7 @@ int lguiGuiTextInputBox( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> color = RL_GuiColorPicker( Rectangle bounds, string text, Color color )
|
||||
> color = RL.GuiColorPicker( Rectangle bounds, string text, Color color )
|
||||
|
||||
Color Picker control ( multiple color controls )
|
||||
|
||||
@@ -1038,7 +1038,7 @@ Color Picker control ( multiple color controls )
|
||||
*/
|
||||
int lguiGuiColorPicker( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiColorPicker( Rectangle bounds, string text, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiColorPicker( Rectangle bounds, string text, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1055,7 +1055,7 @@ int lguiGuiColorPicker( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> color = RL_GuiColorPanel( Rectangle bounds, string text, Color color )
|
||||
> color = RL.GuiColorPanel( Rectangle bounds, string text, Color color )
|
||||
|
||||
Color Panel control
|
||||
|
||||
@@ -1064,7 +1064,7 @@ Color Panel control
|
||||
*/
|
||||
int lguiGuiColorPanel( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiColorPanel( Rectangle bounds, string text, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiColorPanel( Rectangle bounds, string text, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1081,7 +1081,7 @@ int lguiGuiColorPanel( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> alpha = RL_GuiColorBarAlpha( Rectangle bounds, string text, float alpha )
|
||||
> alpha = RL.GuiColorBarAlpha( Rectangle bounds, string text, float alpha )
|
||||
|
||||
Color Bar Alpha control
|
||||
|
||||
@@ -1090,7 +1090,7 @@ Color Bar Alpha control
|
||||
*/
|
||||
int lguiGuiColorBarAlpha( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiColorBarAlpha( Rectangle bounds, string text, float alpha )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiColorBarAlpha( Rectangle bounds, string text, float alpha )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1107,7 +1107,7 @@ int lguiGuiColorBarAlpha( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> hue = RL_GuiColorBarHue( Rectangle bounds, string text, float value )
|
||||
> hue = RL.GuiColorBarHue( Rectangle bounds, string text, float value )
|
||||
|
||||
Color Bar Hue control
|
||||
|
||||
@@ -1116,7 +1116,7 @@ Color Bar Hue control
|
||||
*/
|
||||
int lguiGuiColorBarHue( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiColorBarHue( Rectangle bounds, string text, float value )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiColorBarHue( Rectangle bounds, string text, float value )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1137,7 +1137,7 @@ int lguiGuiColorBarHue( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> text = RL_GuiIconText( int iconId, string text )
|
||||
> text = RL.GuiIconText( int iconId, string text )
|
||||
|
||||
Get text with icon id prepended ( if supported )
|
||||
|
||||
@@ -1146,7 +1146,7 @@ Get text with icon id prepended ( if supported )
|
||||
*/
|
||||
int lguiGuiIconText( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiIconText( int iconId, string text )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiIconText( int iconId, string text )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1166,7 +1166,7 @@ int lguiGuiIconText( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiDrawIcon( int iconId, Vector2 pos, int pixelSize, Color color )
|
||||
> success = RL.GuiDrawIcon( int iconId, Vector2 pos, int pixelSize, Color color )
|
||||
|
||||
Draw icon
|
||||
|
||||
@@ -1175,7 +1175,7 @@ Draw icon
|
||||
*/
|
||||
int lguiGuiDrawIcon( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiDrawIcon( int iconId, Vector2 pos, int pixelSize, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiDrawIcon( int iconId, Vector2 pos, int pixelSize, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1194,7 +1194,7 @@ int lguiGuiDrawIcon( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiSetIconScale( int scale )
|
||||
> success = RL.GuiSetIconScale( int scale )
|
||||
|
||||
Set icon scale ( 1 by default )
|
||||
|
||||
@@ -1203,7 +1203,7 @@ Set icon scale ( 1 by default )
|
||||
*/
|
||||
int lguiGuiSetIconScale( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSetIconScale( int scale )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSetIconScale( int scale )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1214,7 +1214,7 @@ int lguiGuiSetIconScale( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiSetIconPixel( int iconId, Vector2 pos )
|
||||
> success = RL.GuiSetIconPixel( int iconId, Vector2 pos )
|
||||
|
||||
Set icon pixel value
|
||||
|
||||
@@ -1223,7 +1223,7 @@ Set icon pixel value
|
||||
*/
|
||||
int lguiGuiSetIconPixel( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiSetIconPixel( int iconId, Vector2 pos )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiSetIconPixel( int iconId, Vector2 pos )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1238,7 +1238,7 @@ int lguiGuiSetIconPixel( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_GuiClearIconPixel( int iconId, Vector2 pos )
|
||||
> success = RL.GuiClearIconPixel( int iconId, Vector2 pos )
|
||||
|
||||
Clear icon pixel value
|
||||
|
||||
@@ -1247,7 +1247,7 @@ Clear icon pixel value
|
||||
*/
|
||||
int lguiGuiClearIconPixel( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiClearIconPixel( int iconId, Vector2 pos )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiClearIconPixel( int iconId, Vector2 pos )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -1262,7 +1262,7 @@ int lguiGuiClearIconPixel( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> value = RL_GuiCheckIconPixel( int iconId, Vector2 pos )
|
||||
> value = RL.GuiCheckIconPixel( int iconId, Vector2 pos )
|
||||
|
||||
Check icon pixel value
|
||||
|
||||
@@ -1271,7 +1271,7 @@ Check icon pixel value
|
||||
*/
|
||||
int lguiGuiCheckIconPixel( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GuiCheckIconPixel( int iconId, Vector2 pos )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GuiCheckIconPixel( int iconId, Vector2 pos )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_rlSetLineWidth( float width )
|
||||
> success = RL.rlSetLineWidth( float width )
|
||||
|
||||
Set the line drawing width
|
||||
|
||||
@@ -17,7 +17,7 @@ Set the line drawing width
|
||||
*/
|
||||
int lrlglSetLineWidth( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_rlSetLineWidth( float width )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.rlSetLineWidth( float width )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ int lrlglSetLineWidth( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> width = RL_rlGetLineWidth()
|
||||
> width = RL.rlGetLineWidth()
|
||||
|
||||
Get the line drawing width
|
||||
|
||||
|
||||
424
src/rmath.c
424
src/rmath.c
File diff suppressed because it is too large
Load Diff
164
src/shapes.c
164
src/shapes.c
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_SetShapesTexture( Texture2D texture, Rectangle source )
|
||||
> success = RL.SetShapesTexture( Texture2D texture, Rectangle source )
|
||||
|
||||
Set texture and rectangle to be used on shapes drawing
|
||||
NOTE: It can be useful when using basic shapes and one single font,
|
||||
@@ -19,7 +19,7 @@ defining a font char white rectangle would allow drawing everything in a single
|
||||
*/
|
||||
int lshapesSetShapesTexture( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetShapesTexture( Texture2D texture, Rectangle source )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShapesTexture( Texture2D texture, Rectangle source )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -38,7 +38,7 @@ int lshapesSetShapesTexture( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawPixel( Vector2 pos, Color color )
|
||||
> success = RL.DrawPixel( Vector2 pos, Color color )
|
||||
|
||||
Draw a pixel
|
||||
|
||||
@@ -47,7 +47,7 @@ Draw a pixel
|
||||
*/
|
||||
int lshapesDrawPixel( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawPixel( Vector2 pos, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawPixel( Vector2 pos, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ int lshapesDrawPixel( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawLine( Vector2 startPos, Vector2 endPos, float thickness, Color color )
|
||||
> success = RL.DrawLine( Vector2 startPos, Vector2 endPos, float thickness, Color color )
|
||||
|
||||
Draw a line defining thickness
|
||||
|
||||
@@ -71,7 +71,7 @@ Draw a line defining thickness
|
||||
*/
|
||||
int lshapesDrawLine( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawLine( Vector2 startPos, Vector2 endPos, float thickness, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawLine( Vector2 startPos, Vector2 endPos, float thickness, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ int lshapesDrawLine( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawLineBezier( Vector2 startPos, Vector2 endPos, float thickness, Color color )
|
||||
> success = RL.DrawLineBezier( Vector2 startPos, Vector2 endPos, float thickness, Color color )
|
||||
|
||||
Draw a line using cubic-bezier curves in-out
|
||||
|
||||
@@ -99,7 +99,7 @@ Draw a line using cubic-bezier curves in-out
|
||||
*/
|
||||
int lshapesDrawLineBezier( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawLineBezier( Vector2 startPos, Vector2 endPos, float thickness, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawLineBezier( Vector2 startPos, Vector2 endPos, float thickness, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -118,7 +118,7 @@ int lshapesDrawLineBezier( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawLineBezierQuad( Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thickness, Color color )
|
||||
> success = RL.DrawLineBezierQuad( Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thickness, Color color )
|
||||
|
||||
Draw line using quadratic bezier curves with a control point
|
||||
|
||||
@@ -127,7 +127,7 @@ Draw line using quadratic bezier curves with a control point
|
||||
*/
|
||||
int lshapesDrawLineBezierQuad( lua_State *L ) {
|
||||
if ( !lua_istable( L, -5 ) || !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawLineBezier( Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thickness, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawLineBezier( Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thickness, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ int lshapesDrawLineBezierQuad( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawLineBezierCubic( Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos, float thickness, Color color )
|
||||
> success = RL.DrawLineBezierCubic( Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos, float thickness, Color color )
|
||||
|
||||
Draw line using quadratic bezier curves with a control point
|
||||
|
||||
@@ -158,7 +158,7 @@ Draw line using quadratic bezier curves with a control point
|
||||
int lshapesDrawLineBezierCubic( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_istable( L, -5 ) || !lua_istable( L, -4 ) ||
|
||||
!lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawLineBezierCubic( Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos, float thickness, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawLineBezierCubic( Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos, float thickness, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -181,7 +181,7 @@ int lshapesDrawLineBezierCubic( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawLineStrip( Vector2 points{}, int pointsCount, Color color )
|
||||
> success = RL.DrawLineStrip( Vector2{} points, int pointsCount, Color color )
|
||||
|
||||
Draw lines sequence
|
||||
|
||||
@@ -190,7 +190,7 @@ Draw lines sequence
|
||||
*/
|
||||
int lshapesDrawLineStrip( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawLineStrip( Vector2 points{}, int pointsCount, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawLineStrip( Vector2{} points, int pointsCount, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -217,7 +217,7 @@ int lshapesDrawLineStrip( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawCircle( Vector2 center, float radius, Color color )
|
||||
> success = RL.DrawCircle( Vector2 center, float radius, Color color )
|
||||
|
||||
Draw a color-filled circle
|
||||
|
||||
@@ -226,7 +226,7 @@ Draw a color-filled circle
|
||||
*/
|
||||
int lshapesDrawCircle( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawCircle( Vector2 center, float radius, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCircle( Vector2 center, float radius, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -243,7 +243,7 @@ int lshapesDrawCircle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawCircleSector( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )
|
||||
> success = RL.DrawCircleSector( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )
|
||||
|
||||
Draw a piece of a circle
|
||||
|
||||
@@ -253,7 +253,7 @@ Draw a piece of a circle
|
||||
int lshapesDrawCircleSector( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) ||
|
||||
!lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawCircleSector( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCircleSector( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ int lshapesDrawCircleSector( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawCircleSectorLines( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )
|
||||
> success = RL.DrawCircleSectorLines( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )
|
||||
|
||||
Draw circle sector outline
|
||||
|
||||
@@ -286,7 +286,7 @@ Draw circle sector outline
|
||||
int lshapesDrawCircleSectorLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) ||
|
||||
!lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawCircleSectorLines( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCircleSectorLines( Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -309,7 +309,7 @@ int lshapesDrawCircleSectorLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawCircleGradient( Vector2 center, float radius, Color color1, Color color2 )
|
||||
> success = RL.DrawCircleGradient( Vector2 center, float radius, Color color1, Color color2 )
|
||||
|
||||
Draw a gradient-filled circle
|
||||
|
||||
@@ -318,7 +318,7 @@ Draw a gradient-filled circle
|
||||
*/
|
||||
int lshapesDrawCircleGradient( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawCircleGradient( Vector2 center, float radius, Color color1, Color color2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCircleGradient( Vector2 center, float radius, Color color1, Color color2 )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -337,7 +337,7 @@ int lshapesDrawCircleGradient( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawCircleLines( Vector2 center, float radius, Color color )
|
||||
> success = RL.DrawCircleLines( Vector2 center, float radius, Color color )
|
||||
|
||||
Draw circle outline
|
||||
|
||||
@@ -346,7 +346,7 @@ Draw circle outline
|
||||
*/
|
||||
int lshapesDrawCircleLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawCircleLines( Vector2 center, float radius, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCircleLines( Vector2 center, float radius, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -363,7 +363,7 @@ int lshapesDrawCircleLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawEllipse( Vector2 center, float radiusH, float radiusV, Color color )
|
||||
> success = RL.DrawEllipse( Vector2 center, float radiusH, float radiusV, Color color )
|
||||
|
||||
Draw ellipse
|
||||
|
||||
@@ -372,7 +372,7 @@ Draw ellipse
|
||||
*/
|
||||
int lshapesDrawEllipse( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawEllipse( Vector2 center, float radiusH, float radiusV, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawEllipse( Vector2 center, float radiusH, float radiusV, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -391,7 +391,7 @@ int lshapesDrawEllipse( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawEllipseLines( Vector2 center, float radiusH, float radiusV, Color color )
|
||||
> success = RL.DrawEllipseLines( Vector2 center, float radiusH, float radiusV, Color color )
|
||||
|
||||
Draw ellipse outline
|
||||
|
||||
@@ -400,7 +400,7 @@ Draw ellipse outline
|
||||
*/
|
||||
int lshapesDrawEllipseLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawEllipseLines( Vector2 center, float radiusH, float radiusV, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawEllipseLines( Vector2 center, float radiusH, float radiusV, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -419,7 +419,7 @@ int lshapesDrawEllipseLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRing( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )
|
||||
> success = RL.DrawRing( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )
|
||||
|
||||
Draw ring
|
||||
|
||||
@@ -429,7 +429,7 @@ Draw ring
|
||||
int lshapesDrawRing( lua_State *L ) {
|
||||
if ( !lua_istable( L, -7 ) || !lua_istable( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) ||
|
||||
!lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRing( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRing( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -454,7 +454,7 @@ int lshapesDrawRing( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRingLines( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )
|
||||
> success = RL.DrawRingLines( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )
|
||||
|
||||
Draw ring outline
|
||||
|
||||
@@ -464,7 +464,7 @@ Draw ring outline
|
||||
int lshapesDrawRingLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -7 ) || !lua_istable( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) ||
|
||||
!lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRingLines( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRingLines( Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -489,7 +489,7 @@ int lshapesDrawRingLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangle( Rectangle rec, Color color )
|
||||
> success = RL.DrawRectangle( Rectangle rec, Color color )
|
||||
|
||||
Draw a color-filled rectangle
|
||||
|
||||
@@ -498,7 +498,7 @@ Draw a color-filled rectangle
|
||||
*/
|
||||
int lshapesDrawRectangle( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangle( Rectangle rec, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangle( Rectangle rec, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -513,7 +513,7 @@ int lshapesDrawRectangle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectanglePro( Rectangle rec, Vector2 origin, float rotation, Color color )
|
||||
> success = RL.DrawRectanglePro( Rectangle rec, Vector2 origin, float rotation, Color color )
|
||||
|
||||
Draw a color-filled rectangle with pro parameters
|
||||
|
||||
@@ -522,7 +522,7 @@ Draw a color-filled rectangle with pro parameters
|
||||
*/
|
||||
int lshapesDrawRectanglePro( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectanglePro( Rectangle rec, Vector2 origin, float rotation, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectanglePro( Rectangle rec, Vector2 origin, float rotation, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -541,7 +541,7 @@ int lshapesDrawRectanglePro( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleGradientV( Rectangle rectangle, Color color1, Color color2 )
|
||||
> success = RL.DrawRectangleGradientV( Rectangle rectangle, Color color1, Color color2 )
|
||||
|
||||
Draw a vertical-gradient-filled rectangle
|
||||
|
||||
@@ -550,7 +550,7 @@ Draw a vertical-gradient-filled rectangle
|
||||
*/
|
||||
int lshapesDrawRectangleGradientV( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleGradientV( Rectangle rectangle, Color color1, Color color2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleGradientV( Rectangle rectangle, Color color1, Color color2 )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -567,7 +567,7 @@ int lshapesDrawRectangleGradientV( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleGradientH( Rectangle rectangle, Color color1, Color color2 )
|
||||
> success = RL.DrawRectangleGradientH( Rectangle rectangle, Color color1, Color color2 )
|
||||
|
||||
Draw a horizontal-gradient-filled rectangle
|
||||
|
||||
@@ -576,7 +576,7 @@ Draw a horizontal-gradient-filled rectangle
|
||||
*/
|
||||
int lshapesDrawRectangleGradientH( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleGradientH( Rectangle rectangle, Color color1, Color color2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleGradientH( Rectangle rectangle, Color color1, Color color2 )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -593,7 +593,7 @@ int lshapesDrawRectangleGradientH( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleGradientEx( Rectangle rectangle, Color col1, Color col2, Color col3, Color col4 )
|
||||
> success = RL.DrawRectangleGradientEx( Rectangle rectangle, Color col1, Color col2, Color col3, Color col4 )
|
||||
|
||||
Draw a gradient-filled rectangle with custom vertex colors
|
||||
|
||||
@@ -602,7 +602,7 @@ Draw a gradient-filled rectangle with custom vertex colors
|
||||
*/
|
||||
int lshapesDrawRectangleGradientEx( lua_State *L ) {
|
||||
if ( !lua_istable( L, -5 ) || !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleGradientEx( Rectangle rectangle, Color col1, Color col2, Color col3, Color col4 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleGradientEx( Rectangle rectangle, Color col1, Color col2, Color col3, Color col4 )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -623,7 +623,7 @@ int lshapesDrawRectangleGradientEx( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleLines( Rectangle rec, Color color )
|
||||
> success = RL.DrawRectangleLines( Rectangle rec, Color color )
|
||||
|
||||
Draw rectangle outline
|
||||
|
||||
@@ -632,7 +632,7 @@ Draw rectangle outline
|
||||
*/
|
||||
int lshapesDrawRectangleLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangle( Rectangle rec, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleLines( Rectangle rec, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -647,7 +647,7 @@ int lshapesDrawRectangleLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleLinesEx( Rectangle rec, int lineThick, Color color )
|
||||
> success = RL.DrawRectangleLinesEx( Rectangle rec, int lineThick, Color color )
|
||||
|
||||
Draw rectangle outline with extended parameters
|
||||
|
||||
@@ -656,7 +656,7 @@ Draw rectangle outline with extended parameters
|
||||
*/
|
||||
int lshapesDrawRectangleLinesEx( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleLinesEx( Rectangle rec, int lineThick, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleLinesEx( Rectangle rec, int lineThick, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -673,7 +673,7 @@ int lshapesDrawRectangleLinesEx( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleRounded( Rectangle rec, float roundness, int segments, Color color )
|
||||
> success = RL.DrawRectangleRounded( Rectangle rec, float roundness, int segments, Color color )
|
||||
|
||||
Draw rectangle with rounded edges
|
||||
|
||||
@@ -682,7 +682,7 @@ Draw rectangle with rounded edges
|
||||
*/
|
||||
int lshapesDrawRectangleRounded( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleRounded( Rectangle rec, float roundness, int segments, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleRounded( Rectangle rec, float roundness, int segments, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -701,7 +701,7 @@ int lshapesDrawRectangleRounded( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawRectangleRoundedLines( Rectangle rec, float roundness, int segments, int lineThick, Color color )
|
||||
> success = RL.DrawRectangleRoundedLines( Rectangle rec, float roundness, int segments, int lineThick, Color color )
|
||||
|
||||
Draw rectangle with rounded edges outline
|
||||
|
||||
@@ -710,7 +710,7 @@ Draw rectangle with rounded edges outline
|
||||
*/
|
||||
int lshapesDrawRectangleRoundedLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleRoundedLines( Rectangle rec, float roundness, int segments, int lineThick, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRectangleRoundedLines( Rectangle rec, float roundness, int segments, int lineThick, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -731,7 +731,7 @@ int lshapesDrawRectangleRoundedLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawTriangle( Vector2 v1, Vector2 v2, Vector2 v3, Color color )
|
||||
> success = RL.DrawTriangle( Vector2 v1, Vector2 v2, Vector2 v3, Color color )
|
||||
|
||||
Draw a color-filled triangle ( Vertex in counter-clockwise order! )
|
||||
|
||||
@@ -740,7 +740,7 @@ Draw a color-filled triangle ( Vertex in counter-clockwise order! )
|
||||
*/
|
||||
int lshapesDrawTriangle( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTriangle( Vector2 v1, Vector2 v2, Vector2 v3, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTriangle( Vector2 v1, Vector2 v2, Vector2 v3, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -759,7 +759,7 @@ int lshapesDrawTriangle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawTriangleLines( Vector2 v1, Vector2 v2, Vector2 v3, Color color )
|
||||
> success = RL.DrawTriangleLines( Vector2 v1, Vector2 v2, Vector2 v3, Color color )
|
||||
|
||||
Draw triangle outline ( Vertex in counter-clockwise order! )
|
||||
|
||||
@@ -768,7 +768,7 @@ Draw triangle outline ( Vertex in counter-clockwise order! )
|
||||
*/
|
||||
int lshapesDrawTriangleLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTriangleLines( Vector2 v1, Vector2 v2, Vector2 v3, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTriangleLines( Vector2 v1, Vector2 v2, Vector2 v3, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -787,7 +787,7 @@ int lshapesDrawTriangleLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawTriangleFan( Vector2 points{}, int pointsCount, Color color )
|
||||
> success = RL.DrawTriangleFan( Vector2{} points, int pointsCount, Color color )
|
||||
|
||||
Draw a triangle fan defined by points ( first vertex is the center )
|
||||
|
||||
@@ -796,7 +796,7 @@ Draw a triangle fan defined by points ( first vertex is the center )
|
||||
*/
|
||||
int lshapesDrawTriangleFan( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTriangleFan( Vector2 points{}, int pointsCount, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTriangleFan( Vector2{} points, int pointsCount, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -823,7 +823,7 @@ int lshapesDrawTriangleFan( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawTriangleStrip( Vector2 points{}, int pointsCount, Color color )
|
||||
> success = RL.DrawTriangleStrip( Vector2{} points, int pointsCount, Color color )
|
||||
|
||||
Draw a triangle strip defined by points
|
||||
|
||||
@@ -832,7 +832,7 @@ Draw a triangle strip defined by points
|
||||
*/
|
||||
int lshapesDrawTriangleStrip( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTriangleStrip( Vector2 points{}, int pointsCount, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTriangleStrip( Vector2{} points, int pointsCount, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -859,7 +859,7 @@ int lshapesDrawTriangleStrip( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawPoly( Vector2 center, int sides, float radius, float rotation, Color color )
|
||||
> success = RL.DrawPoly( Vector2 center, int sides, float radius, float rotation, Color color )
|
||||
|
||||
Draw a regular polygon ( Vector version )
|
||||
|
||||
@@ -868,7 +868,7 @@ Draw a regular polygon ( Vector version )
|
||||
*/
|
||||
int lshapesDrawPoly( lua_State *L ) {
|
||||
if ( !lua_istable( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawPoly( Vector2 center, int sides, float radius, float rotation, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawPoly( Vector2 center, int sides, float radius, float rotation, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -889,7 +889,7 @@ int lshapesDrawPoly( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawPolyLines( Vector2 center, int sides, float radius, float rotation, Color color )
|
||||
> success = RL.DrawPolyLines( Vector2 center, int sides, float radius, float rotation, Color color )
|
||||
|
||||
Draw a polygon outline of n sides
|
||||
|
||||
@@ -898,7 +898,7 @@ Draw a polygon outline of n sides
|
||||
*/
|
||||
int lshapesDrawPolyLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawPolyLines( Vector2 center, int sides, float radius, float rotation, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawPolyLines( Vector2 center, int sides, float radius, float rotation, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -919,7 +919,7 @@ int lshapesDrawPolyLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawPolyLinesEx( Vector2 center, int sides, float radius, float rotation, float lineThick, Color color )
|
||||
> success = RL.DrawPolyLinesEx( Vector2 center, int sides, float radius, float rotation, float lineThick, Color color )
|
||||
|
||||
Draw a polygon outline of n sides with extended parameters
|
||||
|
||||
@@ -929,7 +929,7 @@ Draw a polygon outline of n sides with extended parameters
|
||||
int lshapesDrawPolyLinesEx( lua_State *L ) {
|
||||
if ( !lua_istable( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) ||
|
||||
!lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawPolyLinesEx( Vector2 center, int sides, float radius, float rotation, float lineThick, Color color )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawPolyLinesEx( Vector2 center, int sides, float radius, float rotation, float lineThick, Color color )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -956,7 +956,7 @@ int lshapesDrawPolyLinesEx( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionRecs( Rectangle rec1, Rectangle rec2 )
|
||||
> collision = RL.CheckCollisionRecs( Rectangle rec1, Rectangle rec2 )
|
||||
|
||||
Check collision between two rectangles
|
||||
|
||||
@@ -965,7 +965,7 @@ Check collision between two rectangles
|
||||
*/
|
||||
int lshapesCheckCollisionRecs( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionRecs( Rectangle rec1, Rectangle rec2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionRecs( Rectangle rec1, Rectangle rec2 )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -979,7 +979,7 @@ int lshapesCheckCollisionRecs( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionCircles( Vector2 center1, float radius1, Vector2 center2, float radius2 )
|
||||
> collision = RL.CheckCollisionCircles( Vector2 center1, float radius1, Vector2 center2, float radius2 )
|
||||
|
||||
Check collision between two circles
|
||||
|
||||
@@ -988,7 +988,7 @@ Check collision between two circles
|
||||
*/
|
||||
int lshapesCheckCollisionCircles( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionCircles( Vector2 center1, float radius1, Vector2 center2, float radius2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionCircles( Vector2 center1, float radius1, Vector2 center2, float radius2 )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1006,7 +1006,7 @@ int lshapesCheckCollisionCircles( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionCircleRec( Vector2 center, float radius, Rectangle rec )
|
||||
> collision = RL.CheckCollisionCircleRec( Vector2 center, float radius, Rectangle rec )
|
||||
|
||||
Check collision between circle and rectangle
|
||||
|
||||
@@ -1015,7 +1015,7 @@ Check collision between circle and rectangle
|
||||
*/
|
||||
int lshapesCheckCollisionCircleRec( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionCircleRec( Vector2 center, float radius, Rectangle rec )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionCircleRec( Vector2 center, float radius, Rectangle rec )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1031,7 +1031,7 @@ int lshapesCheckCollisionCircleRec( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionPointRec( Vector2 point, Rectangle rec )
|
||||
> collision = RL.CheckCollisionPointRec( Vector2 point, Rectangle rec )
|
||||
|
||||
Check if point is inside rectangle
|
||||
|
||||
@@ -1040,7 +1040,7 @@ Check if point is inside rectangle
|
||||
*/
|
||||
int lshapesCheckCollisionPointRec( lua_State *L ) {
|
||||
if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionPointRec( Vector2 point, Rectangle rec )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionPointRec( Vector2 point, Rectangle rec )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1054,7 +1054,7 @@ int lshapesCheckCollisionPointRec( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionPointCircle( Vector2 point, Vector2 center, float radius )
|
||||
> collision = RL.CheckCollisionPointCircle( Vector2 point, Vector2 center, float radius )
|
||||
|
||||
Check if point is inside circle
|
||||
|
||||
@@ -1063,7 +1063,7 @@ Check if point is inside circle
|
||||
*/
|
||||
int lshapesCheckCollisionPointCircle( lua_State *L ) {
|
||||
if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionPointCircle( Vector2 point, Vector2 center, float radius )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionPointCircle( Vector2 point, Vector2 center, float radius )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1079,7 +1079,7 @@ int lshapesCheckCollisionPointCircle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionPointTriangle( Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3 )
|
||||
> collision = RL.CheckCollisionPointTriangle( Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3 )
|
||||
|
||||
Check if point is inside a triangle
|
||||
|
||||
@@ -1088,7 +1088,7 @@ Check if point is inside a triangle
|
||||
*/
|
||||
int lshapesCheckCollisionPointTriangle( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionPointTriangle( Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionPointTriangle( Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3 )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1106,7 +1106,7 @@ int lshapesCheckCollisionPointTriangle( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision, position = RL_CheckCollisionLines( Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2 )
|
||||
> collision, position = RL.CheckCollisionLines( Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2 )
|
||||
|
||||
Check the collision between two lines defined by two points each, returns collision point by reference
|
||||
|
||||
@@ -1115,7 +1115,7 @@ Check the collision between two lines defined by two points each, returns collis
|
||||
*/
|
||||
int lshapesCheckCollisionLines( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionLines( Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionLines( Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2 )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1136,7 +1136,7 @@ int lshapesCheckCollisionLines( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> collision = RL_CheckCollisionPointLine( Vector2 point, Vector2 p1, Vector2 p2, int threshold )
|
||||
> collision = RL.CheckCollisionPointLine( Vector2 point, Vector2 p1, Vector2 p2, int threshold )
|
||||
|
||||
Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
|
||||
|
||||
@@ -1145,7 +1145,7 @@ Check if point belongs to line created between two points [p1] and [p2] with def
|
||||
*/
|
||||
int lshapesCheckCollisionPointLine( lua_State *L ) {
|
||||
if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionPointLine( Vector2 point, Vector2 p1, Vector2 p2, int threshold )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionPointLine( Vector2 point, Vector2 p1, Vector2 p2, int threshold )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
@@ -1163,7 +1163,7 @@ int lshapesCheckCollisionPointLine( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> rectangle = RL_GetCollisionRec( Rectangle rec1, Rectangle rec2 )
|
||||
> rectangle = RL.GetCollisionRec( Rectangle rec1, Rectangle rec2 )
|
||||
|
||||
Get collision rectangle for two rectangles collision
|
||||
|
||||
@@ -1173,7 +1173,7 @@ Get collision rectangle for two rectangles collision
|
||||
int lshapesGetCollisionRec( lua_State *L ) {
|
||||
/* Rectangle rec1, Rectangle rec2 */
|
||||
if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCollisionRec( Rectangle rec1, Rectangle rec2 )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCollisionRec( Rectangle rec1, Rectangle rec2 )" );
|
||||
lua_pushnil( L );
|
||||
return 1;
|
||||
}
|
||||
|
||||
44
src/text.c
44
src/text.c
@@ -34,7 +34,7 @@ bool validFont( size_t id ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> font = RL_LoadFont( string fileName )
|
||||
> font = RL.LoadFont( string fileName )
|
||||
|
||||
Load font from file into GPU memory ( VRAM )
|
||||
|
||||
@@ -43,7 +43,7 @@ Load font from file into GPU memory ( VRAM )
|
||||
*/
|
||||
int ltextLoadFont( lua_State *L ) {
|
||||
if ( !lua_isstring( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadFont( string fileName )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadFont( string fileName )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ int ltextLoadFont( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> font = RL_LoadFontEx( string fileName, int fontSize )
|
||||
> font = RL.LoadFontEx( string fileName, int fontSize )
|
||||
|
||||
Load font from file with extended parameters. Loading the default character set
|
||||
|
||||
@@ -72,7 +72,7 @@ Load font from file with extended parameters. Loading the default character set
|
||||
*/
|
||||
int ltextLoadFontEx( lua_State *L ) {
|
||||
if ( !lua_isstring( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadFontEx( string fileName, int fontSize )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadFontEx( string fileName, int fontSize )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ int ltextLoadFontEx( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> font = RL_LoadFontFromImage( Image image, Color key, int firstChar )
|
||||
> font = RL.LoadFontFromImage( Image image, Color key, int firstChar )
|
||||
|
||||
Load font from Image ( XNA style )
|
||||
|
||||
@@ -101,7 +101,7 @@ Load font from Image ( XNA style )
|
||||
*/
|
||||
int ltextLoadFontFromImage( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadFontFromImage( Image image, Color key, int firstChar )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadFontFromImage( Image image, Color key, int firstChar )" );
|
||||
lua_pushinteger( L, -1 );
|
||||
return 1;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ int ltextLoadFontFromImage( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_UnloadFont( Font font )
|
||||
> success = RL.UnloadFont( Font font )
|
||||
|
||||
Unload Font from GPU memory ( VRAM )
|
||||
|
||||
@@ -142,7 +142,7 @@ Unload Font from GPU memory ( VRAM )
|
||||
*/
|
||||
int ltextUnloadFont( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadFont( Font font )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadFont( Font font )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -164,7 +164,7 @@ int ltextUnloadFont( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> success = RL_DrawFPS( Vector2 pos )
|
||||
> success = RL.DrawFPS( Vector2 pos )
|
||||
|
||||
Draw current FPS
|
||||
|
||||
@@ -173,7 +173,7 @@ Draw current FPS
|
||||
*/
|
||||
int ltextDrawFPS( lua_State *L ) {
|
||||
if ( !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawFPS( Vector2 pos )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawFPS( Vector2 pos )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ int ltextDrawFPS( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawText( Font font, string text, Vector2 position, float fontSize, float spacing, Color tint )
|
||||
> success = RL.DrawText( Font font, string text, Vector2 position, float fontSize, float spacing, Color tint )
|
||||
|
||||
Draw text using font and additional parameters
|
||||
|
||||
@@ -196,7 +196,7 @@ Draw text using font and additional parameters
|
||||
int ltextDrawText( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -6 ) || !lua_isstring( L, -5 ) || !lua_istable( L, -4 )
|
||||
|| !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawText( Font font, string text, Vector2 position, float fontSize, float spacing, Color tint )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawText( Font font, string text, Vector2 position, float fontSize, float spacing, Color tint )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -221,7 +221,7 @@ int ltextDrawText( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL_DrawTextPro( Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint )
|
||||
> success = RL.DrawTextPro( Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint )
|
||||
|
||||
Draw text using Font and pro parameters ( rotation )
|
||||
|
||||
@@ -231,7 +231,7 @@ Draw text using Font and pro parameters ( rotation )
|
||||
int ltextDrawTextPro( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -8 ) || !lua_isstring( L, -7 ) || !lua_istable( L, -6 ) || !lua_istable( L, -5 )
|
||||
|| !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTextPro( Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTextPro( Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -264,7 +264,7 @@ int ltextDrawTextPro( lua_State *L ) {
|
||||
*/
|
||||
|
||||
/*
|
||||
> size = RL_MeasureText( Font font, string text, float fontSize, float spacing )
|
||||
> size = RL.MeasureText( Font font, string text, float fontSize, float spacing )
|
||||
|
||||
Measure string size for Font
|
||||
|
||||
@@ -273,7 +273,7 @@ Measure string size for Font
|
||||
*/
|
||||
int ltextMeasureText( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -4 ) || !lua_isstring( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MeasureText( Font font, string text, float fontSize, float spacing )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MeasureText( Font font, string text, float fontSize, float spacing )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -293,7 +293,7 @@ int ltextMeasureText( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> baseSize = RL_GetFontBaseSize( Font font )
|
||||
> baseSize = RL.GetFontBaseSize( Font font )
|
||||
|
||||
Get font baseSize
|
||||
|
||||
@@ -302,7 +302,7 @@ Get font baseSize
|
||||
*/
|
||||
int ltextGetFontBaseSize( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFontBaseSize( Font font )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFontBaseSize( Font font )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -318,7 +318,7 @@ int ltextGetFontBaseSize( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> glyphCount = RL_GetFontGlyphCount( Font font )
|
||||
> glyphCount = RL.GetFontGlyphCount( Font font )
|
||||
|
||||
Get font glyphCount
|
||||
|
||||
@@ -327,7 +327,7 @@ Get font glyphCount
|
||||
*/
|
||||
int ltextGetFontGlyphCount( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFontGlyphCount( Font font )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFontGlyphCount( Font font )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
@@ -343,7 +343,7 @@ int ltextGetFontGlyphCount( lua_State *L ) {
|
||||
}
|
||||
|
||||
/*
|
||||
> glyphPadding = RL_GetFontGlyphPadding( Font font )
|
||||
> glyphPadding = RL.GetFontGlyphPadding( Font font )
|
||||
|
||||
Get font glyphPadding
|
||||
|
||||
@@ -352,7 +352,7 @@ Get font glyphPadding
|
||||
*/
|
||||
int ltextGetFontGlyphPadding( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFontGlyphPadding( Font font )" );
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFontGlyphPadding( Font font )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
|
||||
346
src/textures.c
346
src/textures.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user