From 2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 6 Apr 2023 12:31:37 +0300 Subject: All global variables and functions are not in global RL table. doc_parser creates also ReiLua_API.lua. --- src/audio.c | 118 +++--- src/core.c | 542 ++++++++++++------------- src/easings.c | 100 ++--- src/lights.c | 8 +- src/lua_core.c | 1222 +++++++++++++++++++++++++++++--------------------------- src/models.c | 273 ++++++------- src/rgui.c | 190 ++++----- src/rlgl.c | 6 +- src/rmath.c | 424 ++++++++++---------- src/shapes.c | 164 ++++---- src/text.c | 44 +- src/textures.c | 346 ++++++++-------- 12 files changed, 1734 insertions(+), 1703 deletions(-) (limited to 'src') diff --git a/src/audio.c b/src/audio.c index 6a8c33a..70c38e7 100644 --- a/src/audio.c +++ b/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 ) diff --git a/src/core.c b/src/core.c index c3f24cf..71d1505 100644 --- a/src/core.c +++ b/src/core.c @@ -84,7 +84,7 @@ bool validShader( size_t id ) { */ /* -> state = RL_IsWindowReady() +> state = RL.IsWindowReady() Check if window has been initialized successfully @@ -97,7 +97,7 @@ int lcoreIsWindowReady( lua_State *L ) { } /* -> state = RL_IsWindowFullscreen() +> state = RL.IsWindowFullscreen() Check if window is currently fullscreen @@ -110,7 +110,7 @@ int lcoreIsWindowFullscreen( lua_State *L ) { } /* -> state = RL_IsWindowHidden() +> state = RL.IsWindowHidden() Check if window is currently hidden ( only PLATFORM_DESKTOP ) @@ -123,7 +123,7 @@ int lcoreIsWindowHidden( lua_State *L ) { } /* -> state = RL_IsWindowMinimized() +> state = RL.IsWindowMinimized() Check if window is currently minimized ( only PLATFORM_DESKTOP ) @@ -136,7 +136,7 @@ int lcoreIsWindowMinimized( lua_State *L ) { } /* -> state = RL_IsWindowMaximized() +> state = RL.IsWindowMaximized() Check if window is currently maximized ( only PLATFORM_DESKTOP ) @@ -149,7 +149,7 @@ int lcoreIsWindowMaximized( lua_State *L ) { } /* -> state = RL_IsWindowFocused() +> state = RL.IsWindowFocused() Check if window is currently focused ( only PLATFORM_DESKTOP ) @@ -162,7 +162,7 @@ int lcoreIsWindowFocused( lua_State *L ) { } /* -> success = RL_SetWindowMonitor( int monitor ) +> success = RL.SetWindowMonitor( int monitor ) Set monitor for the current window (fullscreen mode) @@ -171,7 +171,7 @@ Set monitor for the current window (fullscreen mode) */ int lcoreSetWindowMonitor( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowMonitor( int monitor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowMonitor( int monitor )" ); lua_pushboolean( L, false ); return 1; } @@ -181,7 +181,7 @@ int lcoreSetWindowMonitor( lua_State *L ) { } /* -> success = RL_SetWindowPosition( Vector2 pos ) +> success = RL.SetWindowPosition( Vector2 pos ) Set window position on screen @@ -190,7 +190,7 @@ Set window position on screen */ int lcoreSetWindowPosition( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowPosition( Vector2 pos )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowPosition( Vector2 pos )" ); lua_pushboolean( L, false ); return 1; } @@ -202,7 +202,7 @@ int lcoreSetWindowPosition( lua_State *L ) { } /* -> success = RL_SetWindowSize( Vector2 size ) +> success = RL.SetWindowSize( Vector2 size ) Set window dimensions @@ -211,7 +211,7 @@ Set window dimensions */ int lcoreSetWindowSize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowSize( Vector2 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowSize( Vector2 size )" ); lua_pushboolean( L, false ); return 1; } @@ -223,7 +223,7 @@ int lcoreSetWindowSize( lua_State *L ) { } /* -> success = RL_SetWindowMinSize( Vector2 size ) +> success = RL.SetWindowMinSize( Vector2 size ) Set window minimum dimensions ( for FLAG_WINDOW_RESIZABLE ) @@ -232,7 +232,7 @@ Set window minimum dimensions ( for FLAG_WINDOW_RESIZABLE ) */ int lcoreSetWindowMinSize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowMinSize( Vector2 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowMinSize( Vector2 size )" ); lua_pushboolean( L, false ); return 1; } @@ -244,7 +244,7 @@ int lcoreSetWindowMinSize( lua_State *L ) { } /* -> position = RL_GetMonitorPosition( int monitor ) +> position = RL.GetMonitorPosition( int monitor ) Get specified monitor position @@ -253,7 +253,7 @@ Get specified monitor position */ int lcoreGetMonitorPosition( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMonitorPosition( int monitor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMonitorPosition( int monitor )" ); lua_pushnil( L ); return 1; } @@ -264,7 +264,7 @@ int lcoreGetMonitorPosition( lua_State *L ) { } /* -> size = RL_GetMonitorSize( int monitor ) +> size = RL.GetMonitorSize( int monitor ) Get specified monitor size @@ -273,7 +273,7 @@ Get specified monitor size */ int lcoreGetMonitorSize( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMonitorSize( int monitor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMonitorSize( int monitor )" ); lua_pushnil( L ); return 1; } @@ -284,7 +284,7 @@ int lcoreGetMonitorSize( lua_State *L ) { } /* -> position = RL_GetWindowPosition() +> position = RL.GetWindowPosition() Get window position on monitor @@ -298,7 +298,7 @@ int lcoreGetWindowPosition( lua_State *L ) { } /* -> size = RL_GetScreenSize() +> size = RL.GetScreenSize() Get screen size @@ -312,7 +312,7 @@ int lcoreGetScreenSize( lua_State *L ) { } /* -> success = RL_SetWindowState( int flag ) +> success = RL.SetWindowState( int flag ) Set window configuration state using flags ( FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZABLE... ) @@ -321,7 +321,7 @@ Set window configuration state using flags ( FLAG_FULLSCREEN_MODE, FLAG_WINDOW_R */ int lcoreSetWindowState( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowState( int flags )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowState( int flags )" ); lua_pushboolean( L, false ); return 1; } @@ -331,7 +331,7 @@ int lcoreSetWindowState( lua_State *L ) { } /* -> state = RL_IsWindowState( int flag ) +> state = RL.IsWindowState( int flag ) Check if one specific window flag is enabled ( FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZABLE... ) @@ -340,7 +340,7 @@ Check if one specific window flag is enabled ( FLAG_FULLSCREEN_MODE, FLAG_WINDOW */ int lcoreIsWindowState( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsWindowState( int flags )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsWindowState( int flags )" ); lua_pushnil( L ); return 1; } @@ -350,7 +350,7 @@ int lcoreIsWindowState( lua_State *L ) { } /* -> resized = RL_ClearWindowState( int flag ) +> resized = RL.ClearWindowState( int flag ) Clear window configuration state flags ( FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZABLE... ) @@ -358,7 +358,7 @@ Clear window configuration state flags ( FLAG_FULLSCREEN_MODE, FLAG_WINDOW_RESIZ */ int lcoreClearWindowState( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ClearWindowState( int flag )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ClearWindowState( int flag )" ); lua_pushnil( L ); return 1; } @@ -368,7 +368,7 @@ int lcoreClearWindowState( lua_State *L ) { } /* -> resized = RL_IsWindowResized() +> resized = RL.IsWindowResized() Check if window has been resized from last frame @@ -381,7 +381,7 @@ int lcoreIsWindowResized( lua_State *L ) { } /* -> success = RL_SetWindowIcon( Image image ) +> success = RL.SetWindowIcon( Image image ) Set icon for window ( Only PLATFORM_DESKTOP ) @@ -390,7 +390,7 @@ Set icon for window ( Only PLATFORM_DESKTOP ) */ int lcoreSetWindowIcon( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowIcon( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowIcon( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -407,7 +407,7 @@ int lcoreSetWindowIcon( lua_State *L ) { } /* -> success = RL_SetWindowTitle( string title ) +> success = RL.SetWindowTitle( string title ) Set title for window ( Only PLATFORM_DESKTOP ) @@ -416,7 +416,7 @@ Set title for window ( Only PLATFORM_DESKTOP ) */ int lcoreSetWindowTitle( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetWindowTitle( string title )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetWindowTitle( string title )" ); lua_pushboolean( L, false ); return 1; } @@ -426,7 +426,7 @@ int lcoreSetWindowTitle( lua_State *L ) { } /* -> count = RL_GetMonitorCount() +> count = RL.GetMonitorCount() Get number of connected monitors @@ -438,7 +438,7 @@ int lcoreGetMonitorCount( lua_State *L ) { } /* -> monitor = RL_GetCurrentMonitor() +> monitor = RL.GetCurrentMonitor() Get current connected monitor @@ -450,7 +450,7 @@ int lcoreGetCurrentMonitor( lua_State *L ) { } /* -> size = RL_GetMonitorPhysicalSize( int monitor ) +> size = RL.GetMonitorPhysicalSize( int monitor ) Get specified monitor physical size in millimetres @@ -459,7 +459,7 @@ Get specified monitor physical size in millimetres */ int lcoreGetMonitorPhysicalSize( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMonitorPhysicalSize( int monitor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMonitorPhysicalSize( int monitor )" ); lua_pushboolean( L, false ); return 1; } @@ -471,7 +471,7 @@ int lcoreGetMonitorPhysicalSize( lua_State *L ) { } /* -> size = RL_GetMonitorRefreshRate( int monitor ) +> size = RL.GetMonitorRefreshRate( int monitor ) Get specified monitor refresh rate @@ -480,7 +480,7 @@ Get specified monitor refresh rate */ int lcoreGetMonitorRefreshRate( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMonitorRefreshRate( int monitor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMonitorRefreshRate( int monitor )" ); lua_pushboolean( L, false ); return 1; } @@ -490,7 +490,7 @@ int lcoreGetMonitorRefreshRate( lua_State *L ) { } /* -> scale = RL_GetWindowScaleDPI() +> scale = RL.GetWindowScaleDPI() Get window scale DPI factor @@ -503,7 +503,7 @@ int lcoreGetWindowScaleDPI( lua_State *L ) { } /* -> name = RL_GetMonitorName( int monitor ) +> name = RL.GetMonitorName( int monitor ) Get the human-readable, UTF-8 encoded name of the monitor @@ -512,7 +512,7 @@ Get the human-readable, UTF-8 encoded name of the monitor */ int lcoreGetMonitorName( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMonitorName( int monitor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMonitorName( int monitor )" ); lua_pushboolean( L, false ); return 1; } @@ -522,7 +522,7 @@ int lcoreGetMonitorName( lua_State *L ) { } /* -> RL_CloseWindow() +> RL.CloseWindow() Close window and unload OpenGL context and free all resources */ @@ -533,7 +533,7 @@ int lcoreCloseWindow( lua_State *L ) { } /* -> success = RL_SetClipboardText( string text ) +> success = RL.SetClipboardText( string text ) Set clipboard text content @@ -542,7 +542,7 @@ Set clipboard text content */ int lcoreSetClipboardText( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetClipboardText( string text )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetClipboardText( string text )" ); lua_pushboolean( L, false ); return 1; } @@ -552,7 +552,7 @@ int lcoreSetClipboardText( lua_State *L ) { } /* -> text = RL_GetClipboardText() +> text = RL.GetClipboardText() Get clipboard text content @@ -568,7 +568,7 @@ int lcoreGetClipboardText( lua_State *L ) { */ /* -> success = RL_SetTargetFPS( int fps ) +> success = RL.SetTargetFPS( int fps ) Set target FPS ( maximum ) @@ -577,7 +577,7 @@ Set target FPS ( maximum ) */ int lcoreSetTargetFPS( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetTargetFPS( int fps )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetTargetFPS( int fps )" ); lua_pushboolean( L, false ); return 1; } @@ -588,7 +588,7 @@ int lcoreSetTargetFPS( lua_State *L ) { } /* -> FPS = RL_GetFPS() +> FPS = RL.GetFPS() Get current FPS @@ -601,7 +601,7 @@ int lcoreGetFPS( lua_State *L ) { } /* -> delta = RL_GetFrameTime() +> delta = RL.GetFrameTime() Get time in seconds for last frame drawn ( Delta time ) @@ -614,7 +614,7 @@ int lcoreGetFrameTime( lua_State *L ) { } /* -> time = RL_GetTime() +> time = RL.GetTime() Get elapsed time in seconds since InitWindow() @@ -631,7 +631,7 @@ int lcoreGetTime( lua_State *L ) { */ /* -> success = RL_TakeScreenshot( string fileName ) +> success = RL.TakeScreenshot( string fileName ) Takes a screenshot of current screen ( filename extension defines format ) @@ -640,7 +640,7 @@ Takes a screenshot of current screen ( filename extension defines format ) */ int lcoreTakeScreenshot( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_TakeScreenshot( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.TakeScreenshot( string fileName )" ); lua_pushboolean( L, false ); return 1; } @@ -651,7 +651,7 @@ int lcoreTakeScreenshot( lua_State *L ) { } /* -> success = RL_SetConfigFlags( int flags ) +> success = RL.SetConfigFlags( int flags ) Setup init configuration flags ( view FLAGS ) @@ -660,7 +660,7 @@ Setup init configuration flags ( view FLAGS ) */ int lcoreSetConfigFlags( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetConfigFlags( int flags )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetConfigFlags( int flags )" ); lua_pushboolean( L, false ); return 1; } @@ -671,7 +671,7 @@ int lcoreSetConfigFlags( lua_State *L ) { } /* -> success = RL_TraceLog( int logLevel, string text ) +> success = RL.TraceLog( int logLevel, string text ) Show trace log messages ( LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR... ) @@ -680,7 +680,7 @@ Show trace log messages ( LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR... ) */ int lcoreTraceLog( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_TraceLog( int logLevel, string text )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.TraceLog( int logLevel, string text )" ); lua_pushboolean( L, false ); return 1; } @@ -691,7 +691,7 @@ int lcoreTraceLog( lua_State *L ) { } /* -> success = RL_SetTraceLogLevel( int logLevel ) +> success = RL.SetTraceLogLevel( int logLevel ) Set the current threshold ( minimum ) log level @@ -700,7 +700,7 @@ Set the current threshold ( minimum ) log level */ int lcoreSetTraceLogLevel( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetTraceLogLevel( int logLevel )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetTraceLogLevel( int logLevel )" ); lua_pushboolean( L, false ); return 1; } @@ -711,7 +711,7 @@ int lcoreSetTraceLogLevel( lua_State *L ) { } /* -> success = RL_OpenURL( string url ) +> success = RL.OpenURL( string url ) Open URL with default system browser ( If available ) @@ -720,7 +720,7 @@ Open URL with default system browser ( If available ) */ int lcoreOpenURL( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_OpenURL( string url )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.OpenURL( string url )" ); lua_pushboolean( L, false ); return 1; } @@ -735,7 +735,7 @@ int lcoreOpenURL( lua_State *L ) { */ /* -> RL_ShowCursor() +> RL.ShowCursor() Shows cursor */ @@ -746,7 +746,7 @@ int lcoreShowCursor( lua_State *L ) { } /* -> RL_HideCursor() +> RL.HideCursor() Hides cursor */ @@ -757,7 +757,7 @@ int lcoreHideCursor( lua_State *L ) { } /* -> hidden = RL_IsCursorHidden() +> hidden = RL.IsCursorHidden() Check if cursor is not visible @@ -770,7 +770,7 @@ int lcoreIsCursorHidden( lua_State *L ) { } /* -> RL_EnableCursor() +> RL.EnableCursor() Enables cursor (unlock cursor) */ @@ -781,7 +781,7 @@ int lcoreEnableCursor( lua_State *L ) { } /* -> RL_DisableCursor() +> RL.DisableCursor() Disables cursor (lock cursor) */ @@ -792,7 +792,7 @@ int lcoreDisableCursor( lua_State *L ) { } /* -> onSreen = RL_IsCursorOnScreen() +> onSreen = RL.IsCursorOnScreen() Check if cursor is on the screen @@ -809,7 +809,7 @@ int lcoreIsCursorOnScreen( lua_State *L ) { */ /* -> success = RL_ClearBackground( Color color ) +> success = RL.ClearBackground( Color color ) Set background color ( framebuffer clear color ) @@ -818,7 +818,7 @@ Set background color ( framebuffer clear color ) */ int lcoreClearBackground( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ClearBackground( Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ClearBackground( Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -830,7 +830,7 @@ int lcoreClearBackground( lua_State *L ) { } /* -> RL_BeginDrawing() +> RL.BeginDrawing() Setup canvas ( framebuffer ) to start drawing */ @@ -841,7 +841,7 @@ int lcoreBeginDrawing( lua_State *L ) { } /* -> RL_EndDrawing() +> RL.EndDrawing() End canvas drawing and swap buffers ( double buffering ) */ @@ -852,7 +852,7 @@ int lcoreEndDrawing( lua_State *L ) { } /* -> success = RL_BeginBlendMode( int mode ) +> success = RL.BeginBlendMode( int mode ) Begin blending mode ( BLEND_ALPHA, BLEND_ADDITIVE, BLEND_MULTIPLIED... ) @@ -861,7 +861,7 @@ Begin blending mode ( BLEND_ALPHA, BLEND_ADDITIVE, BLEND_MULTIPLIED... ) */ int lcoreBeginBlendMode( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_BeginBlendMode( int mode )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.BeginBlendMode( int mode )" ); lua_pushboolean( L, false ); return 1; } @@ -872,7 +872,7 @@ int lcoreBeginBlendMode( lua_State *L ) { } /* -> RL_EndBlendMode() +> RL.EndBlendMode() End blending mode ( reset to default: BLEND_ALPHA ) */ @@ -883,7 +883,7 @@ int lcoreEndBlendMode( lua_State *L ) { } /* -> success = RL_BeginScissorMode( Rectangle rectange ) +> success = RL.BeginScissorMode( Rectangle rectange ) Begin scissor mode ( define screen area for following drawing ) @@ -892,7 +892,7 @@ Begin scissor mode ( define screen area for following drawing ) */ int lcoreBeginScissorMode( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_BeginScissorMode( Rectangle rectange )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.BeginScissorMode( Rectangle rectange )" ); lua_pushboolean( L, false ); return 1; } @@ -905,7 +905,7 @@ int lcoreBeginScissorMode( lua_State *L ) { } /* -> RL_EndScissorMode() +> RL.EndScissorMode() End scissor mode */ @@ -920,7 +920,7 @@ int lcoreEndScissorMode( lua_State *L ) { */ /* -> shader = RL_LoadShader( string vsFileName, string fsFileName ) +> shader = RL.LoadShader( string vsFileName, string fsFileName ) Load shader from files and bind default locations. NOTE: Set nil if no shader @@ -930,7 +930,7 @@ NOTE: Set nil if no shader */ int lcoreLoadShader( lua_State *L ) { if ( !( lua_isstring( L, -2 ) || lua_isnil( L, -2 ) ) || !( lua_isstring( L, -1 ) || lua_isnil( L, -1 ) ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadShader( string vsFileName, string fsFileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadShader( string vsFileName, string fsFileName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -974,7 +974,7 @@ int lcoreLoadShader( lua_State *L ) { } /* -> shader = RL_LoadShaderFromMemory( string vsCode, string fsCode ) +> shader = RL.LoadShaderFromMemory( string vsCode, string fsCode ) Load shader from code strings and bind default locations NOTE: Set nil if no shader @@ -985,7 +985,7 @@ NOTE: Set nil if no shader int lcoreLoadShaderFromMemory( lua_State *L ) { if ( !( lua_isstring( L, -2 ) || lua_isnil( L, -2 ) ) || !( lua_isstring( L, -1 ) || lua_isnil( L, -1 ) ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadShaderFromMemory( string vsCode, string fsCode )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadShaderFromMemory( string vsCode, string fsCode )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1029,7 +1029,7 @@ int lcoreLoadShaderFromMemory( lua_State *L ) { } /* -> success = RL_BeginShaderMode( Shader shader ) +> success = RL.BeginShaderMode( Shader shader ) Begin custom shader drawing @@ -1038,7 +1038,7 @@ Begin custom shader drawing */ int lcoreBeginShaderMode( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_BeginShaderMode( Shader shader )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.BeginShaderMode( Shader shader )" ); lua_pushboolean( L, false ); return 1; } @@ -1055,7 +1055,7 @@ int lcoreBeginShaderMode( lua_State *L ) { } /* -> EndShaderMode() +> RL.EndShaderMode() End custom shader drawing ( use default shader ) */ @@ -1066,7 +1066,7 @@ int lcoreEndShaderMode( lua_State *L ) { } /* -> location = RL_GetShaderLocation( Shader shader, string uniformName ) +> location = RL.GetShaderLocation( Shader shader, string uniformName ) Get shader uniform location @@ -1075,7 +1075,7 @@ Get shader uniform location */ int lcoreGetShaderLocation( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetShaderLocation( Shader shader, string uniformName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetShaderLocation( Shader shader, string uniformName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1091,7 +1091,7 @@ int lcoreGetShaderLocation( lua_State *L ) { } /* -> location = RL_GetShaderLocationAttrib( Shader shader, string attribName ) +> location = RL.GetShaderLocationAttrib( Shader shader, string attribName ) Get shader attribute location @@ -1100,7 +1100,7 @@ Get shader attribute location */ int lcoreGetShaderLocationAttrib( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetShaderLocationAttrib( Shader shader, string attribName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetShaderLocationAttrib( Shader shader, string attribName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1116,7 +1116,7 @@ int lcoreGetShaderLocationAttrib( lua_State *L ) { } /* -> success = RL_SetShaderLocationIndex( Shader shader, int shaderLocationIndex, int location ) +> success = RL.SetShaderLocationIndex( Shader shader, int shaderLocationIndex, int location ) Set shader location index @@ -1125,7 +1125,7 @@ Set shader location index */ int lcoreSetShaderLocationIndex( 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_SetShaderLocationIndex( Shader shader, int shaderLocationIndex, int location )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShaderLocationIndex( Shader shader, int shaderLocationIndex, int location )" ); lua_pushboolean( L, false ); return 1; } @@ -1146,7 +1146,7 @@ int lcoreSetShaderLocationIndex( lua_State *L ) { } /* -> location = RL_GetShaderLocationIndex( Shader shader, int shaderLocationIndex ) +> location = RL.GetShaderLocationIndex( Shader shader, int shaderLocationIndex ) Get shader location index @@ -1155,7 +1155,7 @@ Get shader location index */ int lcoreGetShaderLocationIndex( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetShaderLocationIndex( Shader shader, int shaderLocationIndex )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetShaderLocationIndex( Shader shader, int shaderLocationIndex )" ); lua_pushboolean( L, false ); return 1; } @@ -1173,7 +1173,7 @@ int lcoreGetShaderLocationIndex( lua_State *L ) { } /* -> success = RL_SetShaderValueMatrix( Shader shader, int locIndex, Matrix mat ) +> success = RL.SetShaderValueMatrix( Shader shader, int locIndex, Matrix mat ) Set shader uniform value ( matrix 4x4 ) @@ -1182,7 +1182,7 @@ Set shader uniform value ( matrix 4x4 ) */ int lcoreSetShaderValueMatrix( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetShaderValueMatrix( Shader shader, int locIndex, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShaderValueMatrix( Shader shader, int locIndex, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1203,7 +1203,7 @@ int lcoreSetShaderValueMatrix( lua_State *L ) { } /* -> success = RL_SetShaderValueTexture( Shader shader, int locIndex, Texture2D texture ) +> success = RL.SetShaderValueTexture( Shader shader, int locIndex, Texture2D texture ) Set shader uniform value for texture ( sampler2d ) @@ -1212,7 +1212,7 @@ Set shader uniform value for texture ( sampler2d ) */ int lcoreSetShaderValueTexture( 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_SetShaderValueTexture( Shader shader, int locIndex, Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShaderValueTexture( Shader shader, int locIndex, Texture2D texture )" ); lua_pushboolean( L, false ); return 1; } @@ -1231,7 +1231,7 @@ int lcoreSetShaderValueTexture( lua_State *L ) { } /* -> success = RL_SetShaderValue( Shader shader, int locIndex, number{} values, int uniformType ) +> success = RL.SetShaderValue( Shader shader, int locIndex, number{} values, int uniformType ) Set shader uniform value NOTE: Even one value should be in table @@ -1241,7 +1241,7 @@ NOTE: Even one value should be in table */ int lcoreSetShaderValue( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetShaderValue( Shader shader, int locIndex, number{} values, int uniformType )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShaderValue( Shader shader, int locIndex, number{} values, int uniformType )" ); lua_pushboolean( L, false ); return 1; } @@ -1290,7 +1290,7 @@ int lcoreSetShaderValue( lua_State *L ) { } /* -> success = RL_SetShaderValueV( Shader shader, int locIndex, number{} values, int uniformType, int count ) +> success = RL.SetShaderValueV( Shader shader, int locIndex, number{} values, int uniformType, int count ) Set shader uniform value vector NOTE: Even one value should be in table @@ -1300,7 +1300,7 @@ NOTE: Even one value should be in table */ int lcoreSetShaderValueV( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetShaderValueV( Shader shader, int locIndex, number{} values, int uniformType, int count )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShaderValueV( Shader shader, int locIndex, number{} values, int uniformType, int count )" ); lua_pushboolean( L, false ); return 1; } @@ -1350,7 +1350,7 @@ int lcoreSetShaderValueV( lua_State *L ) { } /* -> success = RL_UnloadShader( Shader shader ) +> success = RL.UnloadShader( Shader shader ) Unload shader from GPU memory ( VRAM ) @@ -1359,7 +1359,7 @@ Unload shader from GPU memory ( VRAM ) */ int lcoreUnloadShader( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadShader( Shader shader )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadShader( Shader shader )" ); lua_pushboolean( L, false ); return 1; } @@ -1381,7 +1381,7 @@ int lcoreUnloadShader( lua_State *L ) { */ /* -> pressed = RL_IsKeyPressed( int key ) +> pressed = RL.IsKeyPressed( int key ) Detect if a key has been pressed once @@ -1390,7 +1390,7 @@ Detect if a key has been pressed once */ int lcoreIsKeyPressed( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsKeyPressed( int key )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsKeyPressed( int key )" ); lua_pushnil( L ); return 1; } @@ -1399,7 +1399,7 @@ int lcoreIsKeyPressed( lua_State *L ) { } /* -> pressed = RL_IsKeyDown( int key ) +> pressed = RL.IsKeyDown( int key ) Detect if a key is being pressed @@ -1408,7 +1408,7 @@ Detect if a key is being pressed */ int lcoreIsKeyDown( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsKeyDown( int key )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsKeyDown( int key )" ); lua_pushnil( L ); return 1; } @@ -1417,7 +1417,7 @@ int lcoreIsKeyDown( lua_State *L ) { } /* -> released = RL_IsKeyReleased( int key ) +> released = RL.IsKeyReleased( int key ) Detect if a key has been released once @@ -1426,7 +1426,7 @@ Detect if a key has been released once */ int lcoreIsKeyReleased( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsKeyReleased( int key )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsKeyReleased( int key )" ); lua_pushnil( L ); return 1; } @@ -1435,7 +1435,7 @@ int lcoreIsKeyReleased( lua_State *L ) { } /* -> released = RL_IsKeyUp( int key ) +> released = RL.IsKeyUp( int key ) Check if a key is NOT being pressed @@ -1444,7 +1444,7 @@ Check if a key is NOT being pressed */ int lcoreIsKeyUp( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsKeyUp( int key )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsKeyUp( int key )" ); lua_pushnil( L ); return 1; } @@ -1453,7 +1453,7 @@ int lcoreIsKeyUp( lua_State *L ) { } /* -> keycode = RL_GetKeyPressed() +> keycode = RL.GetKeyPressed() Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty @@ -1466,7 +1466,7 @@ int lcoreGetKeyPressed( lua_State *L ) { } /* -> unicode = RL_GetCharPressed() +> unicode = RL.GetCharPressed() Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty @@ -1479,13 +1479,13 @@ int lcoreGetCharPressed( lua_State *L ) { } /* -> RL_SetExitKey( int key ) +> RL.SetExitKey( int key ) Set a custom key to exit program ( default is ESC ) */ int lcoreSetExitKey( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetExitKey( int key )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetExitKey( int key )" ); lua_pushnil( L ); return 1; } @@ -1495,7 +1495,7 @@ int lcoreSetExitKey( lua_State *L ) { } /* -> keyName = RL_GetKeyName( int key, int scancode ) +> keyName = RL.GetKeyName( int key, int scancode ) This function returns the name of the specified printable key, encoded as UTF-8. This is typically the character that key would produce without any modifier keys, @@ -1515,7 +1515,7 @@ this function returns nil but does not emit an error. */ int lcoreGetKeyName( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetKeyName( int key, int scancode )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetKeyName( int key, int scancode )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1536,7 +1536,7 @@ int lcoreGetKeyName( lua_State *L ) { } /* -> scancode = RL_GetKeyScancode( int key ) +> scancode = RL.GetKeyScancode( int key ) This function returns the platform-specific scancode of the specified key. If the key is KEY_UNKNOWN or does not exist on the keyboard this method will return -1. @@ -1546,7 +1546,7 @@ If the key is KEY_UNKNOWN or does not exist on the keyboard this method will ret */ int lcoreGetKeyScancode( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetKeyScancode( int key )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetKeyScancode( int key )" ); lua_pushnil( L ); return 1; } @@ -1562,7 +1562,7 @@ int lcoreGetKeyScancode( lua_State *L ) { */ /* -> available = RL_IsGamepadAvailable( int gamepad ) +> available = RL.IsGamepadAvailable( int gamepad ) Detect if a gamepad is available @@ -1571,7 +1571,7 @@ Detect if a gamepad is available */ int lcoreIsGamepadAvailable( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsGamepadAvailable( int gamepad )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsGamepadAvailable( int gamepad )" ); lua_pushnil( L ); return 1; } @@ -1580,7 +1580,7 @@ int lcoreIsGamepadAvailable( lua_State *L ) { } /* -> pressed = RL_IsGamepadButtonPressed( int gamepad, int button ) +> pressed = RL.IsGamepadButtonPressed( int gamepad, int button ) Detect if a gamepad button has been pressed once @@ -1589,7 +1589,7 @@ Detect if a gamepad button has been pressed once */ int lcoreIsGamepadButtonPressed( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsGamepadButtonPressed( int gamepad, int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsGamepadButtonPressed( int gamepad, int button )" ); lua_pushnil( L ); return 1; } @@ -1598,7 +1598,7 @@ int lcoreIsGamepadButtonPressed( lua_State *L ) { } /* -> pressed = RL_IsGamepadButtonDown( int gamepad, int button ) +> pressed = RL.IsGamepadButtonDown( int gamepad, int button ) Detect if a gamepad button is being pressed @@ -1607,7 +1607,7 @@ Detect if a gamepad button is being pressed */ int lcoreIsGamepadButtonDown( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsGamepadButtonDown( int gamepad, int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsGamepadButtonDown( int gamepad, int button )" ); lua_pushnil( L ); return 1; } @@ -1616,7 +1616,7 @@ int lcoreIsGamepadButtonDown( lua_State *L ) { } /* -> released = RL_IsGamepadButtonReleased( int gamepad, int button ) +> released = RL.IsGamepadButtonReleased( int gamepad, int button ) Detect if a gamepad button has been released once @@ -1625,7 +1625,7 @@ Detect if a gamepad button has been released once */ int lcoreIsGamepadButtonReleased( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsGamepadButtonReleased( int gamepad, int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsGamepadButtonReleased( int gamepad, int button )" ); lua_pushnil( L ); return 1; } @@ -1634,7 +1634,7 @@ int lcoreIsGamepadButtonReleased( lua_State *L ) { } /* -> count = RL_GetGamepadAxisCount( int gamepad ) +> count = RL.GetGamepadAxisCount( int gamepad ) Return gamepad axis count for a gamepad @@ -1643,7 +1643,7 @@ Return gamepad axis count for a gamepad */ int lcoreGetGamepadAxisCount( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetGamepadAxisCount( int gamepad )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetGamepadAxisCount( int gamepad )" ); lua_pushboolean( L, false ); return 1; } @@ -1652,7 +1652,7 @@ int lcoreGetGamepadAxisCount( lua_State *L ) { } /* -> value = RL_GetGamepadAxisMovement( int gamepad, int axis ) +> value = RL.GetGamepadAxisMovement( int gamepad, int axis ) Return axis movement value for a gamepad axis @@ -1661,7 +1661,7 @@ Return axis movement value for a gamepad axis */ int lcoreGetGamepadAxisMovement( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetGamepadAxisMovement( int gamepad, int axis )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetGamepadAxisMovement( int gamepad, int axis )" ); lua_pushboolean( L, false ); return 1; } @@ -1670,7 +1670,7 @@ int lcoreGetGamepadAxisMovement( lua_State *L ) { } /* -> name = RL_GetGamepadName( int gamepad ) +> name = RL.GetGamepadName( int gamepad ) Return gamepad internal name id @@ -1679,7 +1679,7 @@ Return gamepad internal name id */ int lcoreGetGamepadName( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetGamepadName( int gamepad )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetGamepadName( int gamepad )" ); lua_pushboolean( L, false ); return 1; } @@ -1692,7 +1692,7 @@ int lcoreGetGamepadName( lua_State *L ) { */ /* -> pressed = RL_IsMouseButtonPressed( int button ) +> pressed = RL.IsMouseButtonPressed( int button ) Detect if a mouse button has been pressed once @@ -1701,7 +1701,7 @@ Detect if a mouse button has been pressed once */ int lcoreIsMouseButtonPressed( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsMouseButtonPressed( int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsMouseButtonPressed( int button )" ); lua_pushnil( L ); return 1; } @@ -1710,7 +1710,7 @@ int lcoreIsMouseButtonPressed( lua_State *L ) { } /* -> pressed = RL_IsMouseButtonDown( int button ) +> pressed = RL.IsMouseButtonDown( int button ) Detect if a mouse button is being pressed @@ -1719,7 +1719,7 @@ Detect if a mouse button is being pressed */ int lcoreIsMouseButtonDown( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsMouseButtonDown( int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsMouseButtonDown( int button )" ); lua_pushnil( L ); return 1; } @@ -1728,7 +1728,7 @@ int lcoreIsMouseButtonDown( lua_State *L ) { } /* -> released = RL_IsMouseButtonReleased( int button ) +> released = RL.IsMouseButtonReleased( int button ) Detect if a mouse button has been released once @@ -1737,7 +1737,7 @@ Detect if a mouse button has been released once */ int lcoreIsMouseButtonReleased( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsMouseButtonReleased( int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsMouseButtonReleased( int button )" ); lua_pushnil( L ); return 1; } @@ -1746,7 +1746,7 @@ int lcoreIsMouseButtonReleased( lua_State *L ) { } /* -> released = RL_IsMouseButtonUp( int button ) +> released = RL.IsMouseButtonUp( int button ) Check if a mouse button is NOT being pressed @@ -1755,7 +1755,7 @@ Check if a mouse button is NOT being pressed */ int lcoreIsMouseButtonUp( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsMouseButtonUp( int button )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsMouseButtonUp( int button )" ); lua_pushnil( L ); return 1; } @@ -1764,7 +1764,7 @@ int lcoreIsMouseButtonUp( lua_State *L ) { } /* -> position = RL_GetMousePosition() +> position = RL.GetMousePosition() Returns mouse position @@ -1776,7 +1776,7 @@ int lcoreGetMousePosition( lua_State *L ) { } /* -> position = RL_GetMouseDelta() +> position = RL.GetMouseDelta() Get mouse delta between frames @@ -1788,7 +1788,7 @@ int lcoreGetMouseDelta( lua_State *L ) { } /* -> success = RL_SetMousePosition( Vector2 position ) +> success = RL.SetMousePosition( Vector2 position ) Set mouse position XY @@ -1797,7 +1797,7 @@ Set mouse position XY */ int lcoreSetMousePosition( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMousePosition( Vector2 position )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMousePosition( Vector2 position )" ); lua_pushboolean( L, false ); return 1; } @@ -1810,7 +1810,7 @@ int lcoreSetMousePosition( lua_State *L ) { } /* -> success = RL_SetMouseOffset( Vector2 offset ) +> success = RL.SetMouseOffset( Vector2 offset ) Set mouse offset @@ -1819,7 +1819,7 @@ Set mouse offset */ int lcoreSetMouseOffset( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMouseOffset( Vector2 offset )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMouseOffset( Vector2 offset )" ); lua_pushboolean( L, false ); return 1; } @@ -1832,7 +1832,7 @@ int lcoreSetMouseOffset( lua_State *L ) { } /* -> success = RL_SetMouseScale( Vector2 scale ) +> success = RL.SetMouseScale( Vector2 scale ) Set mouse scaling @@ -1841,7 +1841,7 @@ Set mouse scaling */ int lcoreSetMouseScale( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMouseScale( Vector2 scale )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMouseScale( Vector2 scale )" ); lua_pushboolean( L, false ); return 1; } @@ -1854,7 +1854,7 @@ int lcoreSetMouseScale( lua_State *L ) { } /* -> movement = RL_GetMouseWheelMove() +> movement = RL.GetMouseWheelMove() Returns mouse wheel movement Y @@ -1866,7 +1866,7 @@ int lcoreGetMouseWheelMove( lua_State *L ) { } /* -> success = RL_SetMouseCursor( int cursor ) +> success = RL.SetMouseCursor( int cursor ) Set mouse cursor @@ -1875,7 +1875,7 @@ Set mouse cursor */ int lcoreSetMouseCursor( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMouseCursor( int cursor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMouseCursor( int cursor )" ); lua_pushboolean( L, false ); return 1; } @@ -1890,7 +1890,7 @@ int lcoreSetMouseCursor( lua_State *L ) { */ /* -> position = RL_GetTouchPosition( int index ) +> position = RL.GetTouchPosition( int index ) Get touch position XY for a touch point index ( relative to screen size ) @@ -1899,7 +1899,7 @@ Get touch position XY for a touch point index ( relative to screen size ) */ int lcoreGetTouchPosition( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetTouchPosition( int index )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetTouchPosition( int index )" ); lua_pushboolean( L, false ); return 1; } @@ -1909,7 +1909,7 @@ int lcoreGetTouchPosition( lua_State *L ) { } /* -> id = RL_GetTouchPointId( int index ) +> id = RL.GetTouchPointId( int index ) Get touch point identifier for given index @@ -1918,7 +1918,7 @@ Get touch point identifier for given index */ int lcoreGetTouchPointId( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetTouchPointId( int index )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetTouchPointId( int index )" ); lua_pushboolean( L, false ); return 1; } @@ -1928,7 +1928,7 @@ int lcoreGetTouchPointId( lua_State *L ) { } /* -> count = RL_GetTouchPointCount() +> count = RL.GetTouchPointCount() Get touch point identifier for given index @@ -1945,7 +1945,7 @@ int lcoreGetTouchPointCount( lua_State *L ) { */ /* -> success = RL_SetGesturesEnabled( unsigned int flags ) +> success = RL.SetGesturesEnabled( unsigned int flags ) Enable a set of gestures using flags @@ -1954,7 +1954,7 @@ Enable a set of gestures using flags */ int lcoreSetGesturesEnabled( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetGesturesEnabled( unsigned int flags )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetGesturesEnabled( unsigned int flags )" ); lua_pushboolean( L, false ); return 1; } @@ -1965,7 +1965,7 @@ int lcoreSetGesturesEnabled( lua_State *L ) { } /* -> detected = RL_IsGestureDetected( int gesture ) +> detected = RL.IsGestureDetected( int gesture ) Check if a gesture have been detected @@ -1974,7 +1974,7 @@ Check if a gesture have been detected */ int lcoreIsGestureDetected( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsGestureDetected( int gesture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsGestureDetected( int gesture )" ); lua_pushnil( L ); return 1; } @@ -1984,7 +1984,7 @@ int lcoreIsGestureDetected( lua_State *L ) { } /* -> gesture = RL_GetGestureDetected() +> gesture = RL.GetGestureDetected() Get latest detected gesture @@ -1997,7 +1997,7 @@ int lcoreGetGestureDetected( lua_State *L ) { } /* -> time = RL_GetGestureHoldDuration() +> time = RL.GetGestureHoldDuration() Get gesture hold time in milliseconds @@ -2010,7 +2010,7 @@ int lcoreGetGestureHoldDuration( lua_State *L ) { } /* -> vector = RL_GetGestureDragVector() +> vector = RL.GetGestureDragVector() Get gesture drag vector @@ -2023,7 +2023,7 @@ int lcoreGetGestureDragVector( lua_State *L ) { } /* -> angle = RL_GetGestureDragAngle() +> angle = RL.GetGestureDragAngle() Get gesture drag angle @@ -2036,7 +2036,7 @@ int lcoreGetGestureDragAngle( lua_State *L ) { } /* -> vector = RL_GetGesturePinchVector() +> vector = RL.GetGesturePinchVector() Get gesture pinch delta @@ -2049,7 +2049,7 @@ int lcoreGetGesturePinchVector( lua_State *L ) { } /* -> angle = RL_GetGesturePinchAngle() +> angle = RL.GetGesturePinchAngle() Get gesture pinch angle @@ -2066,7 +2066,7 @@ int lcoreGetGesturePinchAngle( lua_State *L ) { */ /* -> path = RL_GetBasePath() +> path = RL.GetBasePath() Return game directory ( where main.lua is located ) @@ -2079,7 +2079,7 @@ int lcoreGetBasePath( lua_State *L ) { } /* -> fileExists = RL_FileExists( string fileName ) +> fileExists = RL.FileExists( string fileName ) Check if file exists @@ -2088,7 +2088,7 @@ Check if file exists */ int lcoreFileExists( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_FileExists( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.FileExists( string fileName )" ); lua_pushnil( L ); return 1; } @@ -2097,7 +2097,7 @@ int lcoreFileExists( lua_State *L ) { } /* -> dirExists = RL_DirectoryExists( string dirPath ) +> dirExists = RL.DirectoryExists( string dirPath ) Check if a directory path exists @@ -2106,7 +2106,7 @@ Check if a directory path exists */ int lcoreDirectoryExists( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DirectoryExists( string dirPath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DirectoryExists( string dirPath )" ); lua_pushnil( L ); return 1; } @@ -2115,7 +2115,7 @@ int lcoreDirectoryExists( lua_State *L ) { } /* -> hasFileExtension = RL_IsFileExtension( string fileName, string ext ) +> hasFileExtension = RL.IsFileExtension( string fileName, string ext ) Check file extension ( Including point: .png, .wav ) @@ -2124,7 +2124,7 @@ Check file extension ( Including point: .png, .wav ) */ int lcoreIsFileExtension( lua_State *L ) { if ( !lua_isstring( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsFileExtension( string fileName, string ext )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsFileExtension( string fileName, string ext )" ); lua_pushnil( L ); return 1; } @@ -2133,7 +2133,7 @@ int lcoreIsFileExtension( lua_State *L ) { } /* -> length = RL_GetFileLength( string fileName ) +> length = RL.GetFileLength( string fileName ) Get file length in bytes ( NOTE: GetFileSize() conflicts with windows.h ) @@ -2142,7 +2142,7 @@ Get file length in bytes ( NOTE: GetFileSize() conflicts with windows.h ) */ int lcoreGetFileLength( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFileLength( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFileLength( string fileName )" ); lua_pushboolean( L, false ); return 1; } @@ -2151,7 +2151,7 @@ int lcoreGetFileLength( lua_State *L ) { } /* -> extension = RL_GetFileExtension( string fileName ) +> extension = RL.GetFileExtension( string fileName ) Get pointer to extension for a filename string ( Includes dot: '.png' ) @@ -2160,7 +2160,7 @@ Get pointer to extension for a filename string ( Includes dot: '.png' ) */ int lcoreGetFileExtension( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFileExtension( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFileExtension( string fileName )" ); lua_pushboolean( L, false ); return 1; } @@ -2169,7 +2169,7 @@ int lcoreGetFileExtension( lua_State *L ) { } /* -> filePath = RL_GetFileName( string filePath ) +> filePath = RL.GetFileName( string filePath ) Get pointer to filename for a path string @@ -2178,7 +2178,7 @@ Get pointer to filename for a path string */ int lcoreGetFileName( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFileName( string filePath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFileName( string filePath )" ); lua_pushboolean( L, false ); return 1; } @@ -2187,7 +2187,7 @@ int lcoreGetFileName( lua_State *L ) { } /* -> filePath = RL_GetFileNameWithoutExt( string filePath ) +> filePath = RL.GetFileNameWithoutExt( string filePath ) Get filename string without extension ( Uses static string ) @@ -2196,7 +2196,7 @@ Get filename string without extension ( Uses static string ) */ int lcoreGetFileNameWithoutExt( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFileNameWithoutExt( string filePath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFileNameWithoutExt( string filePath )" ); lua_pushboolean( L, false ); return 1; } @@ -2205,7 +2205,7 @@ int lcoreGetFileNameWithoutExt( lua_State *L ) { } /* -> filePath = RL_GetDirectoryPath( string filePath ) +> filePath = RL.GetDirectoryPath( string filePath ) Get full path for a given fileName with path ( Uses static string ) @@ -2214,7 +2214,7 @@ Get full path for a given fileName with path ( Uses static string ) */ int lcoreGetDirectoryPath( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetDirectoryPath( string filePath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetDirectoryPath( string filePath )" ); lua_pushboolean( L, false ); return 1; } @@ -2223,7 +2223,7 @@ int lcoreGetDirectoryPath( lua_State *L ) { } /* -> directory = RL_GetPrevDirectoryPath( string dirPath ) +> directory = RL.GetPrevDirectoryPath( string dirPath ) Get previous directory path for a given path ( Uses static string ) @@ -2232,7 +2232,7 @@ Get previous directory path for a given path ( Uses static string ) */ int lcoreGetPrevDirectoryPath( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetPrevDirectoryPath( string dirPath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetPrevDirectoryPath( string dirPath )" ); lua_pushboolean( L, false ); return 1; } @@ -2241,7 +2241,7 @@ int lcoreGetPrevDirectoryPath( lua_State *L ) { } /* -> directory = RL_GetWorkingDirectory() +> directory = RL.GetWorkingDirectory() Get current working directory ( Uses static string ) @@ -2253,7 +2253,7 @@ int lcoreGetWorkingDirectory( lua_State *L ) { } /* -> fileNames = RL_LoadDirectoryFiles( string dirPath ) +> fileNames = RL.LoadDirectoryFiles( string dirPath ) Load directory filepaths @@ -2262,7 +2262,7 @@ Load directory filepaths */ int lcoreLoadDirectoryFiles( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadDirectoryFiles( string dirPath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadDirectoryFiles( string dirPath )" ); lua_pushboolean( L, false ); return 1; } @@ -2280,7 +2280,7 @@ int lcoreLoadDirectoryFiles( lua_State *L ) { } /* -> fileNames = RL_LoadDirectoryFilesEx( string basePath, string filter, bool scanSubdirs ) +> fileNames = RL.LoadDirectoryFilesEx( string basePath, string filter, bool scanSubdirs ) Load directory filepaths with extension filtering and recursive directory scan @@ -2289,7 +2289,7 @@ Load directory filepaths with extension filtering and recursive directory scan */ int lcoreLoadDirectoryFilesEx( lua_State *L ) { if ( !lua_isstring( L, -3 ) || !lua_isstring( L, -2 ) || !lua_isboolean( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadDirectoryFilesEx( string dirPath )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadDirectoryFilesEx( string dirPath )" ); lua_pushboolean( L, false ); return 1; } @@ -2307,7 +2307,7 @@ int lcoreLoadDirectoryFilesEx( lua_State *L ) { } /* -> success = RL_ChangeDirectory( string directory ) +> success = RL.ChangeDirectory( string directory ) Change working directory, return true on success @@ -2316,7 +2316,7 @@ Change working directory, return true on success */ int lcoreChangeDirectory( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ChangeDirectory( string directory )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ChangeDirectory( string directory )" ); lua_pushboolean( L, false ); return 1; } @@ -2325,7 +2325,7 @@ int lcoreChangeDirectory( lua_State *L ) { } /* -> isFile = RL_IsPathFile( string path ) +> isFile = RL.IsPathFile( string path ) Check if a given path is a file or a directory @@ -2334,7 +2334,7 @@ Check if a given path is a file or a directory */ int lcoreIsPathFile( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsPathFile( string path )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsPathFile( string path )" ); lua_pushnil( L ); return 1; } @@ -2343,7 +2343,7 @@ int lcoreIsPathFile( lua_State *L ) { } /* -> fileDropped = RL_IsFileDropped() +> fileDropped = RL.IsFileDropped() Check if a file has been dropped into window @@ -2355,7 +2355,7 @@ int lcoreIsFileDropped( lua_State *L ) { } /* -> files = RL_LoadDroppedFiles() +> files = RL.LoadDroppedFiles() Load dropped filepaths @@ -2376,7 +2376,7 @@ int lcoreLoadDroppedFiles( lua_State *L ) { } /* -> time = RL_GetFileModTime( string fileName ) +> time = RL.GetFileModTime( string fileName ) Get file modification time ( Last write time ) @@ -2385,7 +2385,7 @@ Get file modification time ( Last write time ) */ int lcoreGetFileModTime( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetFileModTime( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetFileModTime( string fileName )" ); lua_pushboolean( L, false ); return 1; } @@ -2398,7 +2398,7 @@ int lcoreGetFileModTime( lua_State *L ) { */ /* -> camera2D = RL_CreateCamera2D() +> camera2D = RL.CreateCamera2D() Return camera2D id set to default configuration @@ -2425,7 +2425,7 @@ int lcoreCreateCamera2D( lua_State *L ) { } /* -> success = RL_UnloadCamera2D( int Camera2D ) +> success = RL.UnloadCamera2D( int Camera2D ) Unload Camera2D @@ -2434,7 +2434,7 @@ Unload Camera2D */ int lcoreUnloadCamera2D( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadCamera2D( int Camera2D )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadCamera2D( int Camera2D )" ); lua_pushboolean( L, false ); return 1; } @@ -2453,7 +2453,7 @@ int lcoreUnloadCamera2D( lua_State *L ) { } /* -> success = RL_BeginMode2D( camera2D camera ) +> success = RL.BeginMode2D( camera2D camera ) Begin 2D mode with custom camera ( 2D ) @@ -2462,7 +2462,7 @@ Begin 2D mode with custom camera ( 2D ) */ int lcoreBeginMode2D( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_BeginMode2D( camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.BeginMode2D( camera2D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -2480,7 +2480,7 @@ int lcoreBeginMode2D( lua_State *L ) { } /* -> RL_EndMode2D() +> RL.EndMode2D() Ends 2D mode with custom camera */ @@ -2491,7 +2491,7 @@ int lcoreEndMode2D( lua_State *L ) { } /* -> success = RL_SetCamera2DTarget( camera2D camera, Vector2 target ) +> success = RL.SetCamera2DTarget( camera2D camera, Vector2 target ) Set camera target ( rotation and zoom origin ) @@ -2500,7 +2500,7 @@ Set camera target ( rotation and zoom origin ) */ int lcoreSetCamera2DTarget( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera2DTarget( camera2D camera, Vector2 target )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera2DTarget( camera2D camera, Vector2 target )" ); lua_pushboolean( L, false ); return 1; } @@ -2519,7 +2519,7 @@ int lcoreSetCamera2DTarget( lua_State *L ) { } /* -> success = RL_SetCamera2DOffset( camera2D camera, Vector2 offset ) +> success = RL.SetCamera2DOffset( camera2D camera, Vector2 offset ) Set camera offset ( displacement from target ) @@ -2528,7 +2528,7 @@ Set camera offset ( displacement from target ) */ int lcoreSetCamera2DOffset( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera2DOffset( camera2D camera, Vector2 offset )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera2DOffset( camera2D camera, Vector2 offset )" ); lua_pushboolean( L, false ); return 1; } @@ -2547,7 +2547,7 @@ int lcoreSetCamera2DOffset( lua_State *L ) { } /* -> success = RL_SetCamera2DRotation( camera3D camera, float rotation ) +> success = RL.SetCamera2DRotation( camera3D camera, float rotation ) Set camera rotation in degrees @@ -2556,7 +2556,7 @@ Set camera rotation in degrees */ int lcoreSetCamera2DRotation( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera2DRotation( camera3D camera, float rotation )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera2DRotation( camera3D camera, float rotation )" ); lua_pushboolean( L, false ); return 1; } @@ -2574,7 +2574,7 @@ int lcoreSetCamera2DRotation( lua_State *L ) { } /* -> success = RL_SetCamera2DZoom( camera3D camera, float zoom ) +> success = RL.SetCamera2DZoom( camera3D camera, float zoom ) Set camera zoom ( scaling ), should be 1.0f by default @@ -2583,7 +2583,7 @@ Set camera zoom ( scaling ), should be 1.0f by default */ int lcoreSetCamera2DZoom( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera2DZoom( camera3D camera, float zoom )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera2DZoom( camera3D camera, float zoom )" ); lua_pushboolean( L, false ); return 1; } @@ -2601,7 +2601,7 @@ int lcoreSetCamera2DZoom( lua_State *L ) { } /* -> target = RL_GetCamera2DTarget( camera2D camera ) +> target = RL.GetCamera2DTarget( camera2D camera ) Get camera2D target @@ -2610,7 +2610,7 @@ Get camera2D target */ int lcoreGetCamera2DTarget( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera2DTarget( camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera2DTarget( camera2D camera )" ); lua_pushnil( L ); return 1; } @@ -2627,7 +2627,7 @@ int lcoreGetCamera2DTarget( lua_State *L ) { } /* -> offset = RL_GetCamera2DOffset( camera2D camera ) +> offset = RL.GetCamera2DOffset( camera2D camera ) Get camera2D offset @@ -2636,7 +2636,7 @@ Get camera2D offset */ int lcoreGetCamera2DOffset( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera2DOffset( camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera2DOffset( camera2D camera )" ); lua_pushnil( L ); return 1; } @@ -2653,7 +2653,7 @@ int lcoreGetCamera2DOffset( lua_State *L ) { } /* -> rotation = RL_GetCamera2DRotation( camera2D camera ) +> rotation = RL.GetCamera2DRotation( camera2D camera ) Get camera2D rotation @@ -2662,7 +2662,7 @@ Get camera2D rotation */ int lcoreGetCamera2DRotation( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera2DRotation( camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera2DRotation( camera2D camera )" ); lua_pushnil( L ); return 1; } @@ -2678,7 +2678,7 @@ int lcoreGetCamera2DRotation( lua_State *L ) { } /* -> zoom = RL_GetCamera2DZoom( camera2D camera ) +> zoom = RL.GetCamera2DZoom( camera2D camera ) Get camera2D zoom @@ -2687,7 +2687,7 @@ Get camera2D zoom */ int lcoreGetCamera2DZoom( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera2DZoom( camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera2DZoom( camera2D camera )" ); lua_pushnil( L ); return 1; } @@ -2707,7 +2707,7 @@ int lcoreGetCamera2DZoom( lua_State *L ) { */ /* -> camera = RL_CreateCamera3D() +> camera = RL.CreateCamera3D() Return camera3D id set to default configuration @@ -2736,7 +2736,7 @@ int lcoreCreateCamera3D( lua_State *L ) { } /* -> success = RL_UnloadCamera3D( int Camera3D ) +> success = RL.UnloadCamera3D( int Camera3D ) Unload Camera3D @@ -2745,7 +2745,7 @@ Unload Camera3D */ int lcoreUnloadCamera3D( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadCamera3D( int Camera3D )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadCamera3D( int Camera3D )" ); lua_pushboolean( L, false ); return 1; } @@ -2764,7 +2764,7 @@ int lcoreUnloadCamera3D( lua_State *L ) { } /* -> success = RL_BeginMode3D( camera3D camera ) +> success = RL.BeginMode3D( camera3D camera ) Begin 3D mode with custom camera ( 3D ) @@ -2773,7 +2773,7 @@ Begin 3D mode with custom camera ( 3D ) */ int lcoreBeginMode3D( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_BeginMode3D( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.BeginMode3D( camera3D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -2791,7 +2791,7 @@ int lcoreBeginMode3D( lua_State *L ) { } /* -> RL_EndMode3D() +> RL.EndMode3D() Ends 3D mode and returns to default 2D orthographic mode */ @@ -2802,16 +2802,16 @@ int lcoreEndMode3D( lua_State *L ) { } /* -> success = RL_SetCamera3DPosition( camera3D camera, Vector3 position ) +> success = RL.SetCamera3DPosition( camera3D camera, Vector3 position ) -Set camera position ( Remember to call "RL_UpdateCamera3D()" to apply changes ) +Set camera position ( Remember to call "RL.UpdateCamera3D()" to apply changes ) - Failure return false - Success return true */ int lcoreSetCamera3DPosition( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera3DPosition( camera3D camera, Vector3 position )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera3DPosition( camera3D camera, Vector3 position )" ); lua_pushboolean( L, false ); return 1; } @@ -2830,7 +2830,7 @@ int lcoreSetCamera3DPosition( lua_State *L ) { } /* -> success = RL_SetCamera3DTarget( camera3D camera, Vector3 target ) +> success = RL.SetCamera3DTarget( camera3D camera, Vector3 target ) Set camera target it looks-at @@ -2839,7 +2839,7 @@ Set camera target it looks-at */ int lcoreSetCamera3DTarget( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera3DTarget( camera3D camera, Vector3 target )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera3DTarget( camera3D camera, Vector3 target )" ); lua_pushboolean( L, false ); return 1; } @@ -2858,7 +2858,7 @@ int lcoreSetCamera3DTarget( lua_State *L ) { } /* -> success = RL_SetCamera3DUp( camera3D camera, Vector3 up ) +> success = RL.SetCamera3DUp( camera3D camera, Vector3 up ) Set camera up vector ( Rotation over it's axis ) @@ -2867,7 +2867,7 @@ Set camera up vector ( Rotation over it's axis ) */ int lcoreSetCamera3DUp( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera3DUp( camera3D camera, Vector3 up )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera3DUp( camera3D camera, Vector3 up )" ); lua_pushboolean( L, false ); return 1; } @@ -2886,7 +2886,7 @@ int lcoreSetCamera3DUp( lua_State *L ) { } /* -> success = RL_SetCamera3DFovy( camera3D camera, float fovy ) +> success = RL.SetCamera3DFovy( camera3D camera, float fovy ) Set camera field-of-view apperture in Y ( degrees ) in perspective, used as near plane width in orthographic @@ -2895,7 +2895,7 @@ Set camera field-of-view apperture in Y ( degrees ) in perspective, used as near */ int lcoreSetCamera3DFovy( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera3DFovy( camera3D camera, float fovy )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera3DFovy( camera3D camera, float fovy )" ); lua_pushboolean( L, false ); return 1; } @@ -2913,7 +2913,7 @@ int lcoreSetCamera3DFovy( lua_State *L ) { } /* -> success = RL_SetCamera3DProjection( camera3D camera, int projection ) +> success = RL.SetCamera3DProjection( camera3D camera, int projection ) Set camera projection mode ( CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC ) @@ -2922,7 +2922,7 @@ Set camera projection mode ( CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC ) */ int lcoreSetCamera3DProjection( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCamera3DProjection( camera3D camera, int projection )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCamera3DProjection( camera3D camera, int projection )" ); lua_pushboolean( L, false ); return 1; } @@ -2940,7 +2940,7 @@ int lcoreSetCamera3DProjection( lua_State *L ) { } /* -> success = RL_SetCameraMode( camera3D camera, int mode ) +> success = RL.SetCameraMode( camera3D camera, int mode ) Set camera mode ( CAMERA_CUSTOM, CAMERA_FREE, CAMERA_ORBITAL... ) @@ -2949,7 +2949,7 @@ Set camera mode ( CAMERA_CUSTOM, CAMERA_FREE, CAMERA_ORBITAL... ) */ int lcoreSetCameraMode( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCameraMode( camera3D camera, int mode )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCameraMode( camera3D camera, int mode )" ); lua_pushboolean( L, false ); return 1; } @@ -2967,7 +2967,7 @@ int lcoreSetCameraMode( lua_State *L ) { } /* -> position = RL_GetCamera3DPosition( camera3D camera ) +> position = RL.GetCamera3DPosition( camera3D camera ) Get camera position @@ -2976,7 +2976,7 @@ Get camera position */ int lcoreGetCamera3DPosition( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera3DPosition( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera3DPosition( camera3D camera )" ); lua_pushnil( L ); return 1; } @@ -2993,7 +2993,7 @@ int lcoreGetCamera3DPosition( lua_State *L ) { } /* -> target = RL_GetCamera3DTarget( camera3D camera ) +> target = RL.GetCamera3DTarget( camera3D camera ) Get camera target it looks-at @@ -3002,7 +3002,7 @@ Get camera target it looks-at */ int lcoreGetCamera3DTarget( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera3DTarget( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera3DTarget( camera3D camera )" ); lua_pushnil( L ); return 1; } @@ -3019,7 +3019,7 @@ int lcoreGetCamera3DTarget( lua_State *L ) { } /* -> up = RL_GetCamera3DUp( camera3D camera ) +> up = RL.GetCamera3DUp( camera3D camera ) Get camera up vector ( Rotation over it's axis ) @@ -3028,7 +3028,7 @@ Get camera up vector ( Rotation over it's axis ) */ int lcoreGetCamera3DUp( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera3DUp( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera3DUp( camera3D camera )" ); lua_pushnil( L ); return 1; } @@ -3045,7 +3045,7 @@ int lcoreGetCamera3DUp( lua_State *L ) { } /* -> fovy = RL_GetCamera3DFovy( camera3D camera ) +> fovy = RL.GetCamera3DFovy( camera3D camera ) Get camera field-of-view apperture in Y ( degrees ) in perspective, used as near plane width in orthographic @@ -3054,7 +3054,7 @@ Get camera field-of-view apperture in Y ( degrees ) in perspective, used as near */ int lcoreGetCamera3DFovy( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera3DFovy( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera3DFovy( camera3D camera )" ); lua_pushnil( L ); return 1; } @@ -3071,7 +3071,7 @@ int lcoreGetCamera3DFovy( lua_State *L ) { } /* -> projection = RL_GetCamera3DProjection( camera3D camera ) +> projection = RL.GetCamera3DProjection( camera3D camera ) Get camera projection mode @@ -3080,7 +3080,7 @@ Get camera projection mode */ int lcoreGetCamera3DProjection( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCamera3DProjection( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCamera3DProjection( camera3D camera )" ); lua_pushnil( L ); return 1; } @@ -3097,7 +3097,7 @@ int lcoreGetCamera3DProjection( lua_State *L ) { } /* -> success = RL_UpdateCamera3D( camera3D camera ) +> success = RL.UpdateCamera3D( camera3D camera ) Update camera position for selected mode @@ -3106,7 +3106,7 @@ Update camera position for selected mode */ int lcoreUpdateCamera3D( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UpdateCamera3D( camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateCamera3D( camera3D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -3124,7 +3124,7 @@ int lcoreUpdateCamera3D( lua_State *L ) { } /* -> success = RL_SetCameraPanControl( int keyPan ) +> success = RL.SetCameraPanControl( int keyPan ) Set camera pan key to combine with mouse movement ( free camera ) @@ -3133,7 +3133,7 @@ Set camera pan key to combine with mouse movement ( free camera ) */ int lcoreSetCameraPanControl( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCameraPanControl( int keyPan )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCameraPanControl( int keyPan )" ); lua_pushboolean( L, false ); return 1; } @@ -3144,7 +3144,7 @@ int lcoreSetCameraPanControl( lua_State *L ) { } /* -> success = RL_SetCameraAltControl( int keyAlt ) +> success = RL.SetCameraAltControl( int keyAlt ) Set camera alt key to combine with mouse movement ( free camera ) @@ -3153,7 +3153,7 @@ Set camera alt key to combine with mouse movement ( free camera ) */ int lcoreSetCameraAltControl( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCameraAltControl( int keyAlt )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCameraAltControl( int keyAlt )" ); lua_pushboolean( L, false ); return 1; } @@ -3164,7 +3164,7 @@ int lcoreSetCameraAltControl( lua_State *L ) { } /* -> success = RL_SetCameraSmoothZoomControl( int keySmoothZoom ) +> success = RL.SetCameraSmoothZoomControl( int keySmoothZoom ) Set camera smooth zoom key to combine with mouse ( free camera ) @@ -3173,7 +3173,7 @@ Set camera smooth zoom key to combine with mouse ( free camera ) */ int lcoreSetCameraSmoothZoomControl( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetCameraSmoothZoomControl( int keySmoothZoom )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCameraSmoothZoomControl( int keySmoothZoom )" ); lua_pushboolean( L, false ); return 1; } @@ -3184,7 +3184,7 @@ int lcoreSetCameraSmoothZoomControl( lua_State *L ) { } /* -> success = RL_SetCameraMoveControls( int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown ) +> success = RL.SetCameraMoveControls( int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown ) Set camera move controls ( 1st person and 3rd person cameras ) @@ -3194,7 +3194,7 @@ Set camera move controls ( 1st person and 3rd person cameras ) int lcoreSetCameraMoveControls( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_isnumber( L, -5 ) || !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_SetCameraMoveControls( int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetCameraMoveControls( int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown )" ); lua_pushboolean( L, false ); return 1; } @@ -3216,7 +3216,7 @@ int lcoreSetCameraMoveControls( lua_State *L ) { */ /* -> ray = RL_GetMouseRay( Vector2 mousePosition, Camera3D camera ) +> ray = RL.GetMouseRay( Vector2 mousePosition, Camera3D camera ) Get a ray trace from mouse position @@ -3225,7 +3225,7 @@ Get a ray trace from mouse position */ int lcoreGetMouseRay( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMouseRay( Vector2 mousePosition, Camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMouseRay( Vector2 mousePosition, Camera3D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -3243,7 +3243,7 @@ int lcoreGetMouseRay( lua_State *L ) { } /* -> matrix = RL_GetCameraMatrix( Camera3D camera ) +> matrix = RL.GetCameraMatrix( Camera3D camera ) Get camera transform matrix ( view matrix ) @@ -3252,7 +3252,7 @@ Get camera transform matrix ( view matrix ) */ int lcoreGetCameraMatrix( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCameraMatrix( Camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCameraMatrix( Camera3D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -3268,7 +3268,7 @@ int lcoreGetCameraMatrix( lua_State *L ) { } /* -> matrix = RL_GetCameraMatrix2D( Camera2D camera ) +> matrix = RL.GetCameraMatrix2D( Camera2D camera ) Get camera 2d transform matrix @@ -3277,7 +3277,7 @@ Get camera 2d transform matrix */ int lcoreGetCameraMatrix2D( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetCameraMatrix2D( Camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetCameraMatrix2D( Camera2D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -3293,7 +3293,7 @@ int lcoreGetCameraMatrix2D( lua_State *L ) { } /* -> position = RL_GetWorldToScreen( Vector3 position, Camera3D camera ) +> position = RL.GetWorldToScreen( Vector3 position, Camera3D camera ) Get the screen space position for a 3d world space position @@ -3302,7 +3302,7 @@ Get the screen space position for a 3d world space position */ int lcoreGetWorldToScreen( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetWorldToScreen( Vector3 position, Camera3D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetWorldToScreen( Vector3 position, Camera3D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -3320,7 +3320,7 @@ int lcoreGetWorldToScreen( lua_State *L ) { } /* -> position = RL_GetWorldToScreenEx( Vector3 position, Camera3D camera, Vector2 size ) +> position = RL.GetWorldToScreenEx( Vector3 position, Camera3D camera, Vector2 size ) Get size position for a 3d world space position @@ -3329,7 +3329,7 @@ Get size position for a 3d world space position */ int lcoreGetWorldToScreenEx( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetWorldToScreenEx( Vector3 position, Camera3D camera, Vector2 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetWorldToScreenEx( Vector3 position, Camera3D camera, Vector2 size )" ); lua_pushboolean( L, false ); return 1; } @@ -3349,7 +3349,7 @@ int lcoreGetWorldToScreenEx( lua_State *L ) { } /* -> position = RL_GetWorldToScreen2D( Vector2 position, Camera2D camera ) +> position = RL.GetWorldToScreen2D( Vector2 position, Camera2D camera ) Get the screen space position for a 2d camera world space position @@ -3358,7 +3358,7 @@ Get the screen space position for a 2d camera world space position */ int lcoreGetWorldToScreen2D( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetWorldToScreen2D( Vector2 position, Camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetWorldToScreen2D( Vector2 position, Camera2D camera )" ); lua_pushboolean( L, false ); return 1; } @@ -3376,7 +3376,7 @@ int lcoreGetWorldToScreen2D( lua_State *L ) { } /* -> position = RL_GetScreenToWorld2D( Vector2 position, Camera2D camera ) +> position = RL.GetScreenToWorld2D( Vector2 position, Camera2D camera ) Get the world space position for a 2d camera screen space position @@ -3385,7 +3385,7 @@ Get the world space position for a 2d camera screen space position */ int lcoreGetScreenToWorld2D( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetScreenToWorld2D( Vector2 position, Camera2D camera )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetScreenToWorld2D( Vector2 position, Camera2D camera )" ); lua_pushboolean( L, false ); return 1; } diff --git a/src/easings.c b/src/easings.c index b864cdb..1179492 100644 --- a/src/easings.c +++ b/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; } diff --git a/src/lights.c b/src/lights.c index 381361e..b82ba8d 100644 --- a/src/lights.c +++ b/src/lights.c @@ -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; } diff --git a/src/lua_core.c b/src/lua_core.c index da09eee..caea688 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -16,22 +16,37 @@ static void assignGlobalInt( int value, const char *name ) { lua_State *L = state->luaState; lua_pushinteger( L, value ); - lua_setglobal( L, name ); + // lua_setglobal( L, name ); + lua_setfield( L, -2, name ); } static void assignGlobalFloat( float value, const char *name ) { lua_State *L = state->luaState; lua_pushnumber( L, value ); - lua_setglobal( L, name ); + // lua_setglobal( L, name ); + lua_setfield( L, -2, name ); } static void assignGlobalColor( Color color, const char *name ) { lua_State *L = state->luaState; uluaPushColor( L, color ); - lua_setglobal( L, name ); + // lua_setglobal( L, name ); + lua_setfield( L, -2, name ); +} + +static void assingGlobalFunction( const char *name, int ( *functionPtr )( lua_State* ) ) { + lua_State *L = state->luaState; + lua_pushcfunction( L, functionPtr ); + lua_setfield( L, -2, name ); } void defineGlobals() { + lua_State *L = state->luaState; + + lua_newtable( state->luaState ); + lua_setglobal( L, "RL" ); + lua_getglobal( L, "RL" ); + /*DOC_START*/ /* ConfigFlags */ assignGlobalInt( FLAG_VSYNC_HINT, "FLAG_VSYNC_HINT" ); @@ -476,6 +491,8 @@ void defineGlobals() { assignGlobalInt( LIGHT_DIRECTIONAL, "LIGHT_DIRECTIONAL" ); assignGlobalInt( LIGHT_POINT, "LIGHT_POINT" ); /*DOC_END*/ + + lua_pop( L, -1 ); } // Custom logging funtion @@ -586,7 +603,9 @@ bool luaCallMain() { lua_pushcfunction( L, luaTraceback ); int tracebackidx = lua_gettop( L ); - lua_getglobal( L, "init" ); + // lua_getglobal( L, "init" ); + lua_getglobal( L, "RL" ); + lua_getfield ( L, -1, "init" ); if ( lua_isfunction( L, -1 ) ) { if ( lua_pcall( L, 0, 0, tracebackidx ) != 0 ) { @@ -599,6 +618,7 @@ bool luaCallMain() { TraceLog( LOG_ERROR, "%s", "No Lua init found!" ); return false; } + lua_pop( L, -1 ); /* Apply custom callback here. */ SetTraceLogCallback( LogCustom ); @@ -611,7 +631,9 @@ void luaCallProcess() { lua_pushcfunction( L, luaTraceback ); int tracebackidx = lua_gettop(L); - lua_getglobal( L, "process" ); + // lua_getglobal( L, "process" ); + lua_getglobal( L, "RL" ); + lua_getfield ( L, -1, "process" ); if ( lua_isfunction( L, -1 ) ) { lua_pushnumber( L, GetFrameTime() ); @@ -631,7 +653,9 @@ void luaCallDraw() { lua_pushcfunction( L, luaTraceback ); int tracebackidx = lua_gettop(L); - lua_getglobal( L, "draw" ); + // lua_getglobal( L, "draw" ); + lua_getglobal( L, "RL" ); + lua_getfield ( L, -1, "draw" ); if ( lua_isfunction( L, -1 ) ) { BeginDrawing(); @@ -652,7 +676,9 @@ void luaCallExit() { lua_pushcfunction( L, luaTraceback ); int tracebackidx = lua_gettop(L); - lua_getglobal( L, "exit" ); + // lua_getglobal( L, "exit" ); + lua_getglobal( L, "RL" ); + lua_getfield ( L, -1, "exit" ); if ( lua_isfunction( L, -1 ) ) { if ( lua_pcall( L, 0, 0, tracebackidx ) != 0 ) { @@ -666,678 +692,682 @@ void luaCallExit() { void luaRegister() { lua_State *L = state->luaState; + lua_getglobal( L, "RL" ); /* Core. */ /* Window. */ - lua_register( L, "RL_IsWindowReady", lcoreIsWindowReady ); - lua_register( L, "RL_IsWindowFullscreen", lcoreIsWindowFullscreen ); - lua_register( L, "RL_IsWindowHidden", lcoreIsWindowHidden ); - lua_register( L, "RL_IsWindowMinimized", lcoreIsWindowMinimized ); - lua_register( L, "RL_IsWindowMaximized", lcoreIsWindowMaximized ); - lua_register( L, "RL_IsWindowFocused", lcoreIsWindowFocused ); - lua_register( L, "RL_SetWindowMonitor", lcoreSetWindowMonitor ); - lua_register( L, "RL_SetWindowPosition", lcoreSetWindowPosition ); - lua_register( L, "RL_SetWindowSize", lcoreSetWindowSize ); - lua_register( L, "RL_SetWindowMinSize", lcoreSetWindowMinSize ); - lua_register( L, "RL_GetMonitorPosition", lcoreGetMonitorPosition ); - lua_register( L, "RL_GetMonitorSize", lcoreGetMonitorSize ); - lua_register( L, "RL_GetWindowPosition", lcoreGetWindowPosition ); - lua_register( L, "RL_GetScreenSize", lcoreGetScreenSize ); - lua_register( L, "RL_SetWindowState", lcoreSetWindowState ); - lua_register( L, "RL_IsWindowState", lcoreIsWindowState ); - lua_register( L, "RL_ClearWindowState", lcoreClearWindowState ); - lua_register( L, "RL_IsWindowResized", lcoreIsWindowResized ); - lua_register( L, "RL_SetWindowIcon", lcoreSetWindowIcon ); - lua_register( L, "RL_SetWindowTitle", lcoreSetWindowTitle ); - lua_register( L, "RL_GetMonitorCount", lcoreGetMonitorCount ); - lua_register( L, "RL_GetCurrentMonitor", lcoreGetCurrentMonitor ); - lua_register( L, "RL_GetMonitorPhysicalSize", lcoreGetMonitorPhysicalSize ); - lua_register( L, "RL_GetMonitorRefreshRate", lcoreGetMonitorRefreshRate ); - lua_register( L, "RL_GetWindowScaleDPI", lcoreGetWindowScaleDPI ); - lua_register( L, "RL_GetMonitorName", lcoreGetMonitorName ); - lua_register( L, "RL_CloseWindow", lcoreCloseWindow ); - lua_register( L, "RL_SetClipboardText", lcoreSetClipboardText ); - lua_register( L, "RL_GetClipboardText", lcoreGetClipboardText ); + + assingGlobalFunction( "IsWindowReady", lcoreIsWindowReady ); + assingGlobalFunction( "IsWindowFullscreen", lcoreIsWindowFullscreen ); + assingGlobalFunction( "IsWindowHidden", lcoreIsWindowHidden ); + assingGlobalFunction( "IsWindowMinimized", lcoreIsWindowMinimized ); + assingGlobalFunction( "IsWindowMaximized", lcoreIsWindowMaximized ); + assingGlobalFunction( "IsWindowFocused", lcoreIsWindowFocused ); + assingGlobalFunction( "SetWindowMonitor", lcoreSetWindowMonitor ); + assingGlobalFunction( "SetWindowPosition", lcoreSetWindowPosition ); + assingGlobalFunction( "SetWindowSize", lcoreSetWindowSize ); + assingGlobalFunction( "SetWindowMinSize", lcoreSetWindowMinSize ); + assingGlobalFunction( "GetMonitorPosition", lcoreGetMonitorPosition ); + assingGlobalFunction( "GetMonitorSize", lcoreGetMonitorSize ); + assingGlobalFunction( "GetWindowPosition", lcoreGetWindowPosition ); + assingGlobalFunction( "GetScreenSize", lcoreGetScreenSize ); + assingGlobalFunction( "SetWindowState", lcoreSetWindowState ); + assingGlobalFunction( "IsWindowState", lcoreIsWindowState ); + assingGlobalFunction( "ClearWindowState", lcoreClearWindowState ); + assingGlobalFunction( "IsWindowResized", lcoreIsWindowResized ); + assingGlobalFunction( "SetWindowIcon", lcoreSetWindowIcon ); + assingGlobalFunction( "SetWindowTitle", lcoreSetWindowTitle ); + assingGlobalFunction( "GetMonitorCount", lcoreGetMonitorCount ); + assingGlobalFunction( "GetCurrentMonitor", lcoreGetCurrentMonitor ); + assingGlobalFunction( "GetMonitorPhysicalSize", lcoreGetMonitorPhysicalSize ); + assingGlobalFunction( "GetMonitorRefreshRate", lcoreGetMonitorRefreshRate ); + assingGlobalFunction( "GetWindowScaleDPI", lcoreGetWindowScaleDPI ); + assingGlobalFunction( "GetMonitorName", lcoreGetMonitorName ); + assingGlobalFunction( "CloseWindow", lcoreCloseWindow ); + assingGlobalFunction( "SetClipboardText", lcoreSetClipboardText ); + assingGlobalFunction( "GetClipboardText", lcoreGetClipboardText ); /* Timing. */ - lua_register( L, "RL_SetTargetFPS", lcoreSetTargetFPS ); - lua_register( L, "RL_GetFPS", lcoreGetFPS ); - lua_register( L, "RL_GetFrameTime", lcoreGetFrameTime ); - lua_register( L, "RL_GetTime", lcoreGetTime ); + assingGlobalFunction( "SetTargetFPS", lcoreSetTargetFPS ); + assingGlobalFunction( "GetFPS", lcoreGetFPS ); + assingGlobalFunction( "GetFrameTime", lcoreGetFrameTime ); + assingGlobalFunction( "GetTime", lcoreGetTime ); /* Misc. */ - lua_register( L, "RL_TakeScreenshot", lcoreTakeScreenshot ); - lua_register( L, "RL_SetConfigFlags", lcoreSetConfigFlags ); - lua_register( L, "RL_TraceLog", lcoreTraceLog ); - lua_register( L, "RL_SetTraceLogLevel", lcoreSetTraceLogLevel ); - lua_register( L, "RL_OpenURL", lcoreOpenURL ); + assingGlobalFunction( "TakeScreenshot", lcoreTakeScreenshot ); + assingGlobalFunction( "SetConfigFlags", lcoreSetConfigFlags ); + assingGlobalFunction( "TraceLog", lcoreTraceLog ); + assingGlobalFunction( "SetTraceLogLevel", lcoreSetTraceLogLevel ); + assingGlobalFunction( "OpenURL", lcoreOpenURL ); /* Cursor. */ - lua_register( L, "RL_ShowCursor", lcoreShowCursor ); - lua_register( L, "RL_HideCursor", lcoreHideCursor ); - lua_register( L, "RL_IsCursorHidden", lcoreIsCursorHidden ); - lua_register( L, "RL_EnableCursor", lcoreEnableCursor ); - lua_register( L, "RL_DisableCursor", lcoreDisableCursor ); - lua_register( L, "RL_IsCursorOnScreen", lcoreIsCursorOnScreen ); + assingGlobalFunction( "ShowCursor", lcoreShowCursor ); + assingGlobalFunction( "HideCursor", lcoreHideCursor ); + assingGlobalFunction( "IsCursorHidden", lcoreIsCursorHidden ); + assingGlobalFunction( "EnableCursor", lcoreEnableCursor ); + assingGlobalFunction( "DisableCursor", lcoreDisableCursor ); + assingGlobalFunction( "IsCursorOnScreen", lcoreIsCursorOnScreen ); /* Drawing. */ - lua_register( L, "RL_ClearBackground", lcoreClearBackground ); - lua_register( L, "RL_BeginDrawing", lcoreBeginDrawing ); - lua_register( L, "RL_EndDrawing", lcoreEndDrawing ); - lua_register( L, "RL_BeginBlendMode", lcoreBeginBlendMode ); - lua_register( L, "RL_EndBlendMode", lcoreEndBlendMode ); - lua_register( L, "RL_BeginScissorMode", lcoreBeginScissorMode ); - lua_register( L, "RL_EndScissorMode", lcoreEndScissorMode ); + assingGlobalFunction( "ClearBackground", lcoreClearBackground ); + assingGlobalFunction( "BeginDrawing", lcoreBeginDrawing ); + assingGlobalFunction( "EndDrawing", lcoreEndDrawing ); + assingGlobalFunction( "BeginBlendMode", lcoreBeginBlendMode ); + assingGlobalFunction( "EndBlendMode", lcoreEndBlendMode ); + assingGlobalFunction( "BeginScissorMode", lcoreBeginScissorMode ); + assingGlobalFunction( "EndScissorMode", lcoreEndScissorMode ); /* Shader. */ - lua_register( L, "RL_LoadShader", lcoreLoadShader ); - lua_register( L, "RL_LoadShaderFromMemory", lcoreLoadShaderFromMemory ); - lua_register( L, "RL_BeginShaderMode", lcoreBeginShaderMode ); - lua_register( L, "RL_EndShaderMode", lcoreEndShaderMode ); - lua_register( L, "RL_GetShaderLocation", lcoreGetShaderLocation ); - lua_register( L, "RL_GetShaderLocationAttrib", lcoreGetShaderLocationAttrib ); - lua_register( L, "RL_SetShaderLocationIndex", lcoreSetShaderLocationIndex ); - lua_register( L, "RL_GetShaderLocationIndex", lcoreGetShaderLocationIndex ); - lua_register( L, "RL_SetShaderValueMatrix", lcoreSetShaderValueMatrix ); - lua_register( L, "RL_SetShaderValueTexture", lcoreSetShaderValueTexture ); - lua_register( L, "RL_SetShaderValue", lcoreSetShaderValue ); - lua_register( L, "RL_SetShaderValueV", lcoreSetShaderValueV ); - lua_register( L, "RL_UnloadShader", lcoreUnloadShader ); + assingGlobalFunction( "LoadShader", lcoreLoadShader ); + assingGlobalFunction( "LoadShaderFromMemory", lcoreLoadShaderFromMemory ); + assingGlobalFunction( "BeginShaderMode", lcoreBeginShaderMode ); + assingGlobalFunction( "EndShaderMode", lcoreEndShaderMode ); + assingGlobalFunction( "GetShaderLocation", lcoreGetShaderLocation ); + assingGlobalFunction( "GetShaderLocationAttrib", lcoreGetShaderLocationAttrib ); + assingGlobalFunction( "SetShaderLocationIndex", lcoreSetShaderLocationIndex ); + assingGlobalFunction( "GetShaderLocationIndex", lcoreGetShaderLocationIndex ); + assingGlobalFunction( "SetShaderValueMatrix", lcoreSetShaderValueMatrix ); + assingGlobalFunction( "SetShaderValueTexture", lcoreSetShaderValueTexture ); + assingGlobalFunction( "SetShaderValue", lcoreSetShaderValue ); + assingGlobalFunction( "SetShaderValueV", lcoreSetShaderValueV ); + assingGlobalFunction( "UnloadShader", lcoreUnloadShader ); /* File. */ - lua_register( L, "RL_GetBasePath", lcoreGetBasePath ); - lua_register( L, "RL_FileExists", lcoreFileExists ); - lua_register( L, "RL_DirectoryExists", lcoreDirectoryExists ); - lua_register( L, "RL_IsFileExtension", lcoreIsFileExtension ); - lua_register( L, "RL_GetFileLength", lcoreGetFileLength ); - lua_register( L, "RL_GetFileExtension", lcoreGetFileExtension ); - lua_register( L, "RL_GetFileName", lcoreGetFileName ); - lua_register( L, "RL_GetFileNameWithoutExt", lcoreGetFileNameWithoutExt ); - lua_register( L, "RL_GetDirectoryPath", lcoreGetDirectoryPath ); - lua_register( L, "RL_GetPrevDirectoryPath", lcoreGetPrevDirectoryPath ); - lua_register( L, "RL_GetWorkingDirectory", lcoreGetWorkingDirectory ); - lua_register( L, "RL_LoadDirectoryFiles", lcoreLoadDirectoryFiles ); - lua_register( L, "RL_LoadDirectoryFilesEx", lcoreLoadDirectoryFilesEx ); - lua_register( L, "RL_ChangeDirectory", lcoreChangeDirectory ); - lua_register( L, "RL_IsPathFile", lcoreIsPathFile ); - lua_register( L, "RL_IsFileDropped", lcoreIsFileDropped ); - lua_register( L, "RL_LoadDroppedFiles", lcoreLoadDroppedFiles ); - lua_register( L, "RL_GetFileModTime", lcoreGetFileModTime ); + assingGlobalFunction( "GetBasePath", lcoreGetBasePath ); + assingGlobalFunction( "FileExists", lcoreFileExists ); + assingGlobalFunction( "DirectoryExists", lcoreDirectoryExists ); + assingGlobalFunction( "IsFileExtension", lcoreIsFileExtension ); + assingGlobalFunction( "GetFileLength", lcoreGetFileLength ); + assingGlobalFunction( "GetFileExtension", lcoreGetFileExtension ); + assingGlobalFunction( "GetFileName", lcoreGetFileName ); + assingGlobalFunction( "GetFileNameWithoutExt", lcoreGetFileNameWithoutExt ); + assingGlobalFunction( "GetDirectoryPath", lcoreGetDirectoryPath ); + assingGlobalFunction( "GetPrevDirectoryPath", lcoreGetPrevDirectoryPath ); + assingGlobalFunction( "GetWorkingDirectory", lcoreGetWorkingDirectory ); + assingGlobalFunction( "LoadDirectoryFiles", lcoreLoadDirectoryFiles ); + assingGlobalFunction( "LoadDirectoryFilesEx", lcoreLoadDirectoryFilesEx ); + assingGlobalFunction( "ChangeDirectory", lcoreChangeDirectory ); + assingGlobalFunction( "IsPathFile", lcoreIsPathFile ); + assingGlobalFunction( "IsFileDropped", lcoreIsFileDropped ); + assingGlobalFunction( "LoadDroppedFiles", lcoreLoadDroppedFiles ); + assingGlobalFunction( "GetFileModTime", lcoreGetFileModTime ); /* Camera2D. */ - lua_register( L, "RL_CreateCamera2D", lcoreCreateCamera2D ); - lua_register( L, "RL_UnloadCamera2D", lcoreUnloadCamera2D ); - lua_register( L, "RL_BeginMode2D", lcoreBeginMode2D ); - lua_register( L, "RL_EndMode2D", lcoreEndMode2D ); - lua_register( L, "RL_SetCamera2DTarget", lcoreSetCamera2DTarget ); - lua_register( L, "RL_SetCamera2DOffset", lcoreSetCamera2DOffset ); - lua_register( L, "RL_SetCamera2DRotation", lcoreSetCamera2DRotation ); - lua_register( L, "RL_SetCamera2DZoom", lcoreSetCamera2DZoom ); - lua_register( L, "RL_GetCamera2DTarget", lcoreGetCamera2DTarget ); - lua_register( L, "RL_GetCamera2DOffset", lcoreGetCamera2DOffset ); - lua_register( L, "RL_GetCamera2DRotation", lcoreGetCamera2DRotation ); - lua_register( L, "RL_GetCamera2DZoom", lcoreGetCamera2DZoom ); + assingGlobalFunction( "CreateCamera2D", lcoreCreateCamera2D ); + assingGlobalFunction( "UnloadCamera2D", lcoreUnloadCamera2D ); + assingGlobalFunction( "BeginMode2D", lcoreBeginMode2D ); + assingGlobalFunction( "EndMode2D", lcoreEndMode2D ); + assingGlobalFunction( "SetCamera2DTarget", lcoreSetCamera2DTarget ); + assingGlobalFunction( "SetCamera2DOffset", lcoreSetCamera2DOffset ); + assingGlobalFunction( "SetCamera2DRotation", lcoreSetCamera2DRotation ); + assingGlobalFunction( "SetCamera2DZoom", lcoreSetCamera2DZoom ); + assingGlobalFunction( "GetCamera2DTarget", lcoreGetCamera2DTarget ); + assingGlobalFunction( "GetCamera2DOffset", lcoreGetCamera2DOffset ); + assingGlobalFunction( "GetCamera2DRotation", lcoreGetCamera2DRotation ); + assingGlobalFunction( "GetCamera2DZoom", lcoreGetCamera2DZoom ); /* Camera3D. */ - lua_register( L, "RL_CreateCamera3D", lcoreCreateCamera3D ); - lua_register( L, "RL_UnloadCamera3D", lcoreUnloadCamera3D ); - lua_register( L, "RL_BeginMode3D", lcoreBeginMode3D ); - lua_register( L, "RL_EndMode3D", lcoreEndMode3D ); - lua_register( L, "RL_SetCamera3DPosition", lcoreSetCamera3DPosition ); - lua_register( L, "RL_SetCamera3DTarget", lcoreSetCamera3DTarget ); - lua_register( L, "RL_SetCamera3DUp", lcoreSetCamera3DUp ); - lua_register( L, "RL_SetCamera3DFovy", lcoreSetCamera3DFovy ); - lua_register( L, "RL_SetCamera3DProjection", lcoreSetCamera3DProjection ); - lua_register( L, "RL_GetCamera3DPosition", lcoreGetCamera3DPosition ); - lua_register( L, "RL_GetCamera3DTarget", lcoreGetCamera3DTarget ); - lua_register( L, "RL_GetCamera3DUp", lcoreGetCamera3DUp ); - lua_register( L, "RL_GetCamera3DFovy", lcoreGetCamera3DFovy ); - lua_register( L, "RL_GetCamera3DProjection", lcoreGetCamera3DProjection ); - lua_register( L, "RL_UpdateCamera3D", lcoreUpdateCamera3D ); - lua_register( L, "RL_SetCameraMode", lcoreSetCameraMode ); - lua_register( L, "RL_SetCameraPanControl", lcoreSetCameraPanControl ); - lua_register( L, "RL_SetCameraAltControl", lcoreSetCameraAltControl ); - lua_register( L, "RL_SetCameraSmoothZoomControl", lcoreSetCameraSmoothZoomControl ); - lua_register( L, "RL_SetCameraMoveControls", lcoreSetCameraMoveControls ); + assingGlobalFunction( "CreateCamera3D", lcoreCreateCamera3D ); + assingGlobalFunction( "UnloadCamera3D", lcoreUnloadCamera3D ); + assingGlobalFunction( "BeginMode3D", lcoreBeginMode3D ); + assingGlobalFunction( "EndMode3D", lcoreEndMode3D ); + assingGlobalFunction( "SetCamera3DPosition", lcoreSetCamera3DPosition ); + assingGlobalFunction( "SetCamera3DTarget", lcoreSetCamera3DTarget ); + assingGlobalFunction( "SetCamera3DUp", lcoreSetCamera3DUp ); + assingGlobalFunction( "SetCamera3DFovy", lcoreSetCamera3DFovy ); + assingGlobalFunction( "SetCamera3DProjection", lcoreSetCamera3DProjection ); + assingGlobalFunction( "GetCamera3DPosition", lcoreGetCamera3DPosition ); + assingGlobalFunction( "GetCamera3DTarget", lcoreGetCamera3DTarget ); + assingGlobalFunction( "GetCamera3DUp", lcoreGetCamera3DUp ); + assingGlobalFunction( "GetCamera3DFovy", lcoreGetCamera3DFovy ); + assingGlobalFunction( "GetCamera3DProjection", lcoreGetCamera3DProjection ); + assingGlobalFunction( "UpdateCamera3D", lcoreUpdateCamera3D ); + assingGlobalFunction( "SetCameraMode", lcoreSetCameraMode ); + assingGlobalFunction( "SetCameraPanControl", lcoreSetCameraPanControl ); + assingGlobalFunction( "SetCameraAltControl", lcoreSetCameraAltControl ); + assingGlobalFunction( "SetCameraSmoothZoomControl", lcoreSetCameraSmoothZoomControl ); + assingGlobalFunction( "SetCameraMoveControls", lcoreSetCameraMoveControls ); /* Input-related Keyboard. */ - lua_register( L, "RL_IsKeyPressed", lcoreIsKeyPressed ); - lua_register( L, "RL_IsKeyDown", lcoreIsKeyDown ); - lua_register( L, "RL_IsKeyReleased", lcoreIsKeyReleased ); - lua_register( L, "RL_IsKeyUp", lcoreIsKeyUp ); - lua_register( L, "RL_GetKeyPressed", lcoreGetKeyPressed ); - lua_register( L, "RL_GetCharPressed", lcoreGetCharPressed ); - lua_register( L, "RL_SetExitKey", lcoreSetExitKey ); - lua_register( L, "RL_GetKeyName", lcoreGetKeyName ); - lua_register( L, "RL_GetKeyScancode", lcoreGetKeyScancode ); + assingGlobalFunction( "IsKeyPressed", lcoreIsKeyPressed ); + assingGlobalFunction( "IsKeyDown", lcoreIsKeyDown ); + assingGlobalFunction( "IsKeyReleased", lcoreIsKeyReleased ); + assingGlobalFunction( "IsKeyUp", lcoreIsKeyUp ); + assingGlobalFunction( "GetKeyPressed", lcoreGetKeyPressed ); + assingGlobalFunction( "GetCharPressed", lcoreGetCharPressed ); + assingGlobalFunction( "SetExitKey", lcoreSetExitKey ); + assingGlobalFunction( "GetKeyName", lcoreGetKeyName ); + assingGlobalFunction( "GetKeyScancode", lcoreGetKeyScancode ); /* Input-related Gamepad. */ - lua_register( L, "RL_IsGamepadAvailable", lcoreIsGamepadAvailable ); - lua_register( L, "RL_IsGamepadButtonPressed", lcoreIsGamepadButtonPressed ); - lua_register( L, "RL_IsGamepadButtonDown", lcoreIsGamepadButtonDown ); - lua_register( L, "RL_IsGamepadButtonReleased", lcoreIsGamepadButtonReleased ); - lua_register( L, "RL_GetGamepadAxisCount", lcoreGetGamepadAxisCount ); - lua_register( L, "RL_GetGamepadAxisMovement", lcoreGetGamepadAxisMovement ); - lua_register( L, "RL_GetGamepadName", lcoreGetGamepadName ); + assingGlobalFunction( "IsGamepadAvailable", lcoreIsGamepadAvailable ); + assingGlobalFunction( "IsGamepadButtonPressed", lcoreIsGamepadButtonPressed ); + assingGlobalFunction( "IsGamepadButtonDown", lcoreIsGamepadButtonDown ); + assingGlobalFunction( "IsGamepadButtonReleased", lcoreIsGamepadButtonReleased ); + assingGlobalFunction( "GetGamepadAxisCount", lcoreGetGamepadAxisCount ); + assingGlobalFunction( "GetGamepadAxisMovement", lcoreGetGamepadAxisMovement ); + assingGlobalFunction( "GetGamepadName", lcoreGetGamepadName ); /* Input-related Mouse. */ - lua_register( L, "RL_IsMouseButtonPressed", lcoreIsMouseButtonPressed ); - lua_register( L, "RL_IsMouseButtonDown", lcoreIsMouseButtonDown ); - lua_register( L, "RL_IsMouseButtonReleased", lcoreIsMouseButtonReleased ); - lua_register( L, "RL_IsMouseButtonUp", lcoreIsMouseButtonUp ); - lua_register( L, "RL_GetMousePosition", lcoreGetMousePosition ); - lua_register( L, "RL_GetMouseDelta", lcoreGetMouseDelta ); - lua_register( L, "RL_SetMousePosition", lcoreSetMousePosition ); - lua_register( L, "RL_SetMouseOffset", lcoreSetMouseOffset ); - lua_register( L, "RL_SetMouseScale", lcoreSetMouseScale ); - lua_register( L, "RL_GetMouseWheelMove", lcoreGetMouseWheelMove ); - lua_register( L, "RL_SetMouseCursor", lcoreSetMouseCursor ); + assingGlobalFunction( "IsMouseButtonPressed", lcoreIsMouseButtonPressed ); + assingGlobalFunction( "IsMouseButtonDown", lcoreIsMouseButtonDown ); + assingGlobalFunction( "IsMouseButtonReleased", lcoreIsMouseButtonReleased ); + assingGlobalFunction( "IsMouseButtonUp", lcoreIsMouseButtonUp ); + assingGlobalFunction( "GetMousePosition", lcoreGetMousePosition ); + assingGlobalFunction( "GetMouseDelta", lcoreGetMouseDelta ); + assingGlobalFunction( "SetMousePosition", lcoreSetMousePosition ); + assingGlobalFunction( "SetMouseOffset", lcoreSetMouseOffset ); + assingGlobalFunction( "SetMouseScale", lcoreSetMouseScale ); + assingGlobalFunction( "GetMouseWheelMove", lcoreGetMouseWheelMove ); + assingGlobalFunction( "SetMouseCursor", lcoreSetMouseCursor ); /* Input-related Touch */ - lua_register( L, "RL_GetTouchPosition", lcoreGetTouchPosition ); - lua_register( L, "RL_GetTouchPointId", lcoreGetTouchPointId ); - lua_register( L, "RL_GetTouchPointCount", lcoreGetTouchPointCount ); + assingGlobalFunction( "GetTouchPosition", lcoreGetTouchPosition ); + assingGlobalFunction( "GetTouchPointId", lcoreGetTouchPointId ); + assingGlobalFunction( "GetTouchPointCount", lcoreGetTouchPointCount ); /* Input-related Gestures. */ - lua_register( L, "RL_SetGesturesEnabled", lcoreSetGesturesEnabled ); - lua_register( L, "RL_IsGestureDetected", lcoreIsGestureDetected ); - lua_register( L, "RL_GetGestureDetected", lcoreGetGestureDetected ); - lua_register( L, "RL_GetGestureHoldDuration", lcoreGetGestureHoldDuration ); - lua_register( L, "RL_GetGestureDragVector", lcoreGetGestureDragVector ); - lua_register( L, "RL_GetGestureDragAngle", lcoreGetGestureDragAngle ); - lua_register( L, "RL_GetGesturePinchVector", lcoreGetGesturePinchVector ); - lua_register( L, "RL_GetGesturePinchAngle", lcoreGetGesturePinchAngle ); + assingGlobalFunction( "SetGesturesEnabled", lcoreSetGesturesEnabled ); + assingGlobalFunction( "IsGestureDetected", lcoreIsGestureDetected ); + assingGlobalFunction( "GetGestureDetected", lcoreGetGestureDetected ); + assingGlobalFunction( "GetGestureHoldDuration", lcoreGetGestureHoldDuration ); + assingGlobalFunction( "GetGestureDragVector", lcoreGetGestureDragVector ); + assingGlobalFunction( "GetGestureDragAngle", lcoreGetGestureDragAngle ); + assingGlobalFunction( "GetGesturePinchVector", lcoreGetGesturePinchVector ); + assingGlobalFunction( "GetGesturePinchAngle", lcoreGetGesturePinchAngle ); /* Screen-space. */ - lua_register( L, "RL_GetMouseRay", lcoreGetMouseRay ); - lua_register( L, "RL_GetCameraMatrix", lcoreGetCameraMatrix ); - lua_register( L, "RL_GetCameraMatrix2D", lcoreGetCameraMatrix2D ); - lua_register( L, "RL_GetWorldToScreen", lcoreGetWorldToScreen ); - lua_register( L, "RL_GetWorldToScreenEx", lcoreGetWorldToScreenEx ); - lua_register( L, "RL_GetWorldToScreen2D", lcoreGetWorldToScreen2D ); - lua_register( L, "RL_GetScreenToWorld2D", lcoreGetScreenToWorld2D ); + assingGlobalFunction( "GetMouseRay", lcoreGetMouseRay ); + assingGlobalFunction( "GetCameraMatrix", lcoreGetCameraMatrix ); + assingGlobalFunction( "GetCameraMatrix2D", lcoreGetCameraMatrix2D ); + assingGlobalFunction( "GetWorldToScreen", lcoreGetWorldToScreen ); + assingGlobalFunction( "GetWorldToScreenEx", lcoreGetWorldToScreenEx ); + assingGlobalFunction( "GetWorldToScreen2D", lcoreGetWorldToScreen2D ); + assingGlobalFunction( "GetScreenToWorld2D", lcoreGetScreenToWorld2D ); /* Shapes. */ /* Drawing. */ - lua_register( L, "RL_SetShapesTexture", lshapesSetShapesTexture ); - lua_register( L, "RL_DrawPixel", lshapesDrawPixel ); - lua_register( L, "RL_DrawLine", lshapesDrawLine ); - lua_register( L, "RL_DrawLineBezier", lshapesDrawLineBezier ); - lua_register( L, "RL_DrawLineBezierQuad", lshapesDrawLineBezierQuad ); - lua_register( L, "RL_DrawLineBezierCubic", lshapesDrawLineBezierCubic ); - lua_register( L, "RL_DrawLineStrip", lshapesDrawLineStrip ); - lua_register( L, "RL_DrawCircle", lshapesDrawCircle ); - lua_register( L, "RL_DrawCircleSector", lshapesDrawCircleSector ); - lua_register( L, "RL_DrawCircleSectorLines", lshapesDrawCircleSectorLines ); - lua_register( L, "RL_DrawCircleGradient", lshapesDrawCircleGradient ); - lua_register( L, "RL_DrawCircleLines", lshapesDrawCircleLines ); - lua_register( L, "RL_DrawEllipse", lshapesDrawEllipse ); - lua_register( L, "RL_DrawEllipseLines", lshapesDrawEllipseLines ); - lua_register( L, "RL_DrawRing", lshapesDrawRing ); - lua_register( L, "RL_DrawRingLines", lshapesDrawRingLines ); - lua_register( L, "RL_DrawRectangle", lshapesDrawRectangle ); - lua_register( L, "RL_DrawRectanglePro", lshapesDrawRectanglePro ); - lua_register( L, "RL_DrawRectangleGradientV", lshapesDrawRectangleGradientV ); - lua_register( L, "RL_DrawRectangleGradientH", lshapesDrawRectangleGradientH ); - lua_register( L, "RL_DrawRectangleGradientEx", lshapesDrawRectangleGradientEx ); - lua_register( L, "RL_DrawRectangleLines", lshapesDrawRectangleLines ); - lua_register( L, "RL_DrawRectangleLinesEx", lshapesDrawRectangleLinesEx ); - lua_register( L, "RL_DrawRectangleRounded", lshapesDrawRectangleRounded ); - lua_register( L, "RL_DrawRectangleRoundedLines", lshapesDrawRectangleRoundedLines ); - lua_register( L, "RL_DrawTriangle", lshapesDrawTriangle ); - lua_register( L, "RL_DrawTriangleLines", lshapesDrawTriangleLines ); - lua_register( L, "RL_DrawTriangleFan", lshapesDrawTriangleFan ); - lua_register( L, "RL_DrawTriangleStrip", lshapesDrawTriangleStrip ); - lua_register( L, "RL_DrawPoly", lshapesDrawPoly ); - lua_register( L, "RL_DrawPolyLines", lshapesDrawPolyLines ); - lua_register( L, "RL_DrawPolyLinesEx", lshapesDrawPolyLinesEx ); + assingGlobalFunction( "SetShapesTexture", lshapesSetShapesTexture ); + assingGlobalFunction( "DrawPixel", lshapesDrawPixel ); + assingGlobalFunction( "DrawLine", lshapesDrawLine ); + assingGlobalFunction( "DrawLineBezier", lshapesDrawLineBezier ); + assingGlobalFunction( "DrawLineBezierQuad", lshapesDrawLineBezierQuad ); + assingGlobalFunction( "DrawLineBezierCubic", lshapesDrawLineBezierCubic ); + assingGlobalFunction( "DrawLineStrip", lshapesDrawLineStrip ); + assingGlobalFunction( "DrawCircle", lshapesDrawCircle ); + assingGlobalFunction( "DrawCircleSector", lshapesDrawCircleSector ); + assingGlobalFunction( "DrawCircleSectorLines", lshapesDrawCircleSectorLines ); + assingGlobalFunction( "DrawCircleGradient", lshapesDrawCircleGradient ); + assingGlobalFunction( "DrawCircleLines", lshapesDrawCircleLines ); + assingGlobalFunction( "DrawEllipse", lshapesDrawEllipse ); + assingGlobalFunction( "DrawEllipseLines", lshapesDrawEllipseLines ); + assingGlobalFunction( "DrawRing", lshapesDrawRing ); + assingGlobalFunction( "DrawRingLines", lshapesDrawRingLines ); + assingGlobalFunction( "DrawRectangle", lshapesDrawRectangle ); + assingGlobalFunction( "DrawRectanglePro", lshapesDrawRectanglePro ); + assingGlobalFunction( "DrawRectangleGradientV", lshapesDrawRectangleGradientV ); + assingGlobalFunction( "DrawRectangleGradientH", lshapesDrawRectangleGradientH ); + assingGlobalFunction( "DrawRectangleGradientEx", lshapesDrawRectangleGradientEx ); + assingGlobalFunction( "DrawRectangleLines", lshapesDrawRectangleLines ); + assingGlobalFunction( "DrawRectangleLinesEx", lshapesDrawRectangleLinesEx ); + assingGlobalFunction( "DrawRectangleRounded", lshapesDrawRectangleRounded ); + assingGlobalFunction( "DrawRectangleRoundedLines", lshapesDrawRectangleRoundedLines ); + assingGlobalFunction( "DrawTriangle", lshapesDrawTriangle ); + assingGlobalFunction( "DrawTriangleLines", lshapesDrawTriangleLines ); + assingGlobalFunction( "DrawTriangleFan", lshapesDrawTriangleFan ); + assingGlobalFunction( "DrawTriangleStrip", lshapesDrawTriangleStrip ); + assingGlobalFunction( "DrawPoly", lshapesDrawPoly ); + assingGlobalFunction( "DrawPolyLines", lshapesDrawPolyLines ); + assingGlobalFunction( "DrawPolyLinesEx", lshapesDrawPolyLinesEx ); /* Collision. */ - lua_register( L, "RL_CheckCollisionRecs", lshapesCheckCollisionRecs ); - lua_register( L, "RL_CheckCollisionCircles", lshapesCheckCollisionCircles ); - lua_register( L, "RL_CheckCollisionCircleRec", lshapesCheckCollisionCircleRec ); - lua_register( L, "RL_CheckCollisionPointRec", lshapesCheckCollisionPointRec ); - lua_register( L, "RL_CheckCollisionPointCircle", lshapesCheckCollisionPointCircle ); - lua_register( L, "RL_CheckCollisionPointTriangle", lshapesCheckCollisionPointTriangle ); - lua_register( L, "RL_CheckCollisionLines", lshapesCheckCollisionLines ); - lua_register( L, "RL_CheckCollisionPointLine", lshapesCheckCollisionPointLine ); - lua_register( L, "RL_GetCollisionRec", lshapesGetCollisionRec ); + assingGlobalFunction( "CheckCollisionRecs", lshapesCheckCollisionRecs ); + assingGlobalFunction( "CheckCollisionCircles", lshapesCheckCollisionCircles ); + assingGlobalFunction( "CheckCollisionCircleRec", lshapesCheckCollisionCircleRec ); + assingGlobalFunction( "CheckCollisionPointRec", lshapesCheckCollisionPointRec ); + assingGlobalFunction( "CheckCollisionPointCircle", lshapesCheckCollisionPointCircle ); + assingGlobalFunction( "CheckCollisionPointTriangle", lshapesCheckCollisionPointTriangle ); + assingGlobalFunction( "CheckCollisionLines", lshapesCheckCollisionLines ); + assingGlobalFunction( "CheckCollisionPointLine", lshapesCheckCollisionPointLine ); + assingGlobalFunction( "GetCollisionRec", lshapesGetCollisionRec ); /* Textures. */ /* Image Loading. */ - lua_register( L, "RL_LoadImage", ltexturesLoadImage ); - lua_register( L, "RL_LoadImageFromTexture", ltexturesLoadImageFromTexture ); - lua_register( L, "RL_LoadImageFromScreen", ltexturesLoadImageFromScreen ); - lua_register( L, "RL_UnloadImage", ltexturesUnloadImage ); - lua_register( L, "RL_ExportImage", ltexturesExportImage ); - lua_register( L, "RL_ExportImageAsCode", ltexturesExportImageAsCode ); + assingGlobalFunction( "LoadImage", ltexturesLoadImage ); + assingGlobalFunction( "LoadImageFromTexture", ltexturesLoadImageFromTexture ); + assingGlobalFunction( "LoadImageFromScreen", ltexturesLoadImageFromScreen ); + assingGlobalFunction( "UnloadImage", ltexturesUnloadImage ); + assingGlobalFunction( "ExportImage", ltexturesExportImage ); + assingGlobalFunction( "ExportImageAsCode", ltexturesExportImageAsCode ); /* Image Generation. */ - lua_register( L, "RL_GenImageColor", ltexturesGenImageColor ); - lua_register( L, "RL_GenImageGradientV", ltexturesGenImageGradientV ); - lua_register( L, "RL_GenImageGradientH", ltexturesGenImageGradientH ); - lua_register( L, "RL_GenImageGradientRadial", ltexturesGenImageGradientRadial ); - lua_register( L, "RL_GenImageChecked", ltexturesGenImageChecked ); - lua_register( L, "RL_GenImageWhiteNoise", ltexturesGenImageWhiteNoise ); - lua_register( L, "RL_GenImageCellular", ltexturesGenImageCellular ); + assingGlobalFunction( "GenImageColor", ltexturesGenImageColor ); + assingGlobalFunction( "GenImageGradientV", ltexturesGenImageGradientV ); + assingGlobalFunction( "GenImageGradientH", ltexturesGenImageGradientH ); + assingGlobalFunction( "GenImageGradientRadial", ltexturesGenImageGradientRadial ); + assingGlobalFunction( "GenImageChecked", ltexturesGenImageChecked ); + assingGlobalFunction( "GenImageWhiteNoise", ltexturesGenImageWhiteNoise ); + assingGlobalFunction( "GenImageCellular", ltexturesGenImageCellular ); /* Image Manipulation Functions. */ - lua_register( L, "RL_ImageCopy", ltexturesImageCopy ); - lua_register( L, "RL_ImageFromImage", ltexturesImageFromImage ); - lua_register( L, "RL_ImageText", ltexturesImageText ); - lua_register( L, "RL_ImageFormat", ltexturesImageFormat ); - lua_register( L, "RL_ImageToPOT", ltexturesImageToPOT ); - lua_register( L, "RL_ImageCrop", ltexturesImageCrop ); - lua_register( L, "RL_ImageAlphaCrop", ltexturesImageAlphaCrop ); - lua_register( L, "RL_ImageAlphaClear", ltexturesImageAlphaClear ); - lua_register( L, "RL_ImageAlphaMask", ltexturesImageAlphaMask ); - lua_register( L, "RL_ImageAlphaPremultiply", ltexturesImageAlphaPremultiply ); - lua_register( L, "RL_ImageResize", ltexturesImageResize ); - lua_register( L, "RL_ImageResizeNN", ltexturesImageResizeNN ); - lua_register( L, "RL_ImageResizeCanvas", ltexturesImageResizeCanvas ); - lua_register( L, "RL_ImageMipmaps", ltexturesImageMipmaps ); - lua_register( L, "RL_ImageDither", ltexturesImageDither ); - lua_register( L, "RL_ImageFlipVertical", ltexturesImageFlipVertical ); - lua_register( L, "RL_ImageFlipHorizontal", ltexturesImageFlipHorizontal ); - lua_register( L, "RL_ImageRotateCW", ltexturesImageRotateCW ); - lua_register( L, "RL_ImageRotateCCW", ltexturesImageRotateCCW ); - lua_register( L, "RL_ImageColorTint", ltexturesImageColorTint ); - lua_register( L, "RL_ImageColorInvert", ltexturesImageColorInvert ); - lua_register( L, "RL_ImageColorGrayscale", ltexturesImageColorGrayscale ); - lua_register( L, "RL_ImageColorContrast", ltexturesImageColorContrast ); - lua_register( L, "RL_ImageColorBrightness", ltexturesImageColorBrightness ); - lua_register( L, "RL_ImageColorReplace", ltexturesImageColorReplace ); - lua_register( L, "RL_LoadImageColors", ltexturesLoadImageColors ); - lua_register( L, "RL_LoadImagePalette", ltexturesLoadImagePalette ); - lua_register( L, "RL_GetImageAlphaBorder", ltexturesGetImageAlphaBorder ); - lua_register( L, "RL_GetImageColor", ltexturesGetImageColor ); + assingGlobalFunction( "ImageCopy", ltexturesImageCopy ); + assingGlobalFunction( "ImageFromImage", ltexturesImageFromImage ); + assingGlobalFunction( "ImageText", ltexturesImageText ); + assingGlobalFunction( "ImageFormat", ltexturesImageFormat ); + assingGlobalFunction( "ImageToPOT", ltexturesImageToPOT ); + assingGlobalFunction( "ImageCrop", ltexturesImageCrop ); + assingGlobalFunction( "ImageAlphaCrop", ltexturesImageAlphaCrop ); + assingGlobalFunction( "ImageAlphaClear", ltexturesImageAlphaClear ); + assingGlobalFunction( "ImageAlphaMask", ltexturesImageAlphaMask ); + assingGlobalFunction( "ImageAlphaPremultiply", ltexturesImageAlphaPremultiply ); + assingGlobalFunction( "ImageResize", ltexturesImageResize ); + assingGlobalFunction( "ImageResizeNN", ltexturesImageResizeNN ); + assingGlobalFunction( "ImageResizeCanvas", ltexturesImageResizeCanvas ); + assingGlobalFunction( "ImageMipmaps", ltexturesImageMipmaps ); + assingGlobalFunction( "ImageDither", ltexturesImageDither ); + assingGlobalFunction( "ImageFlipVertical", ltexturesImageFlipVertical ); + assingGlobalFunction( "ImageFlipHorizontal", ltexturesImageFlipHorizontal ); + assingGlobalFunction( "ImageRotateCW", ltexturesImageRotateCW ); + assingGlobalFunction( "ImageRotateCCW", ltexturesImageRotateCCW ); + assingGlobalFunction( "ImageColorTint", ltexturesImageColorTint ); + assingGlobalFunction( "ImageColorInvert", ltexturesImageColorInvert ); + assingGlobalFunction( "ImageColorGrayscale", ltexturesImageColorGrayscale ); + assingGlobalFunction( "ImageColorContrast", ltexturesImageColorContrast ); + assingGlobalFunction( "ImageColorBrightness", ltexturesImageColorBrightness ); + assingGlobalFunction( "ImageColorReplace", ltexturesImageColorReplace ); + assingGlobalFunction( "LoadImageColors", ltexturesLoadImageColors ); + assingGlobalFunction( "LoadImagePalette", ltexturesLoadImagePalette ); + assingGlobalFunction( "GetImageAlphaBorder", ltexturesGetImageAlphaBorder ); + assingGlobalFunction( "GetImageColor", ltexturesGetImageColor ); /* Image Drawing. */ - lua_register( L, "RL_ImageClearBackground", ltexturesImageClearBackground ); - lua_register( L, "RL_ImageDrawPixel", ltexturesImageDrawPixel ); - lua_register( L, "RL_ImageDrawLine", ltexturesImageDrawLine ); - lua_register( L, "RL_ImageDrawCircle", ltexturesImageDrawCircle ); - lua_register( L, "RL_ImageDrawRectangle", ltexturesImageDrawRectangle ); - lua_register( L, "RL_ImageDrawRectangleLines", ltexturesImageDrawRectangleLines ); - lua_register( L, "RL_ImageDraw", ltexturesImageDraw ); - lua_register( L, "RL_ImageDrawTextEx", ltexturesImageDrawTextEx ); + assingGlobalFunction( "ImageClearBackground", ltexturesImageClearBackground ); + assingGlobalFunction( "ImageDrawPixel", ltexturesImageDrawPixel ); + assingGlobalFunction( "ImageDrawLine", ltexturesImageDrawLine ); + assingGlobalFunction( "ImageDrawCircle", ltexturesImageDrawCircle ); + assingGlobalFunction( "ImageDrawRectangle", ltexturesImageDrawRectangle ); + assingGlobalFunction( "ImageDrawRectangleLines", ltexturesImageDrawRectangleLines ); + assingGlobalFunction( "ImageDraw", ltexturesImageDraw ); + assingGlobalFunction( "ImageDrawTextEx", ltexturesImageDrawTextEx ); /* Image Configuration. */ - lua_register( L, "RL_GetImageSize", ltexturesGetImageSize ); - lua_register( L, "RL_GetImageMipmaps", ltexturesGetImageMipmaps ); - lua_register( L, "RL_GetImageFormat", ltexturesGetImageFormat ); + assingGlobalFunction( "GetImageSize", ltexturesGetImageSize ); + assingGlobalFunction( "GetImageMipmaps", ltexturesGetImageMipmaps ); + assingGlobalFunction( "GetImageFormat", ltexturesGetImageFormat ); /* Texture Loading. */ - lua_register( L, "RL_LoadTexture", ltexturesLoadTexture ); - lua_register( L, "RL_LoadTextureFromImage", ltexturesLoadTextureFromImage ); - lua_register( L, "RL_LoadTextureCubemap", ltexturesLoadTextureCubemap ); - lua_register( L, "RL_LoadRenderTexture", ltexturesLoadRenderTexture ); - lua_register( L, "RL_UnloadTexture", ltexturesUnloadTexture ); - lua_register( L, "RL_UnloadRenderTexture", ltexturesUnloadRenderTexture ); - lua_register( L, "RL_UpdateTexture", ltexturesUpdateTexture ); - lua_register( L, "RL_UpdateTextureRec", ltexturesUpdateTextureRec ); + assingGlobalFunction( "LoadTexture", ltexturesLoadTexture ); + assingGlobalFunction( "LoadTextureFromImage", ltexturesLoadTextureFromImage ); + assingGlobalFunction( "LoadTextureCubemap", ltexturesLoadTextureCubemap ); + assingGlobalFunction( "LoadRenderTexture", ltexturesLoadRenderTexture ); + assingGlobalFunction( "UnloadTexture", ltexturesUnloadTexture ); + assingGlobalFunction( "UnloadRenderTexture", ltexturesUnloadRenderTexture ); + assingGlobalFunction( "UpdateTexture", ltexturesUpdateTexture ); + assingGlobalFunction( "UpdateTextureRec", ltexturesUpdateTextureRec ); /* Texture Drawing. */ - lua_register( L, "RL_DrawTexture", ltexturesDrawTexture ); - lua_register( L, "RL_DrawTextureRec", ltexturesDrawTextureRec ); - lua_register( L, "RL_DrawTextureTiled", ltexturesDrawTextureTiled ); - lua_register( L, "RL_DrawTexturePro", ltexturesDrawTexturePro ); - lua_register( L, "RL_DrawTextureNPatch", ltexturesDrawTextureNPatch ); - lua_register( L, "RL_DrawTexturePoly", ltexturesDrawTexturePoly ); - lua_register( L, "RL_BeginTextureMode", ltexturesBeginTextureMode ); - lua_register( L, "RL_EndTextureMode", ltexturesEndTextureMode ); - lua_register( L, "RL_SetTextureSource", ltexturesSetTextureSource ); - lua_register( L, "RL_GetTextureSource", ltexturesGetTextureSource ); + assingGlobalFunction( "DrawTexture", ltexturesDrawTexture ); + assingGlobalFunction( "DrawTextureRec", ltexturesDrawTextureRec ); + assingGlobalFunction( "DrawTextureTiled", ltexturesDrawTextureTiled ); + assingGlobalFunction( "DrawTexturePro", ltexturesDrawTexturePro ); + assingGlobalFunction( "DrawTextureNPatch", ltexturesDrawTextureNPatch ); + assingGlobalFunction( "DrawTexturePoly", ltexturesDrawTexturePoly ); + assingGlobalFunction( "BeginTextureMode", ltexturesBeginTextureMode ); + assingGlobalFunction( "EndTextureMode", ltexturesEndTextureMode ); + assingGlobalFunction( "SetTextureSource", ltexturesSetTextureSource ); + assingGlobalFunction( "GetTextureSource", ltexturesGetTextureSource ); /* Texture Configuration. */ - lua_register( L, "RL_GenTextureMipmaps", ltexturesGenTextureMipmaps ); - lua_register( L, "RL_SetTextureFilter", ltexturesSetTextureFilter ); - lua_register( L, "RL_SetTextureWrap", ltexturesSetTextureWrap ); - lua_register( L, "RL_GetTextureSize", ltexturesGetTextureSize ); - lua_register( L, "RL_GetTextureMipmaps", ltexturesGetTextureMipmaps ); - lua_register( L, "RL_GetTextureFormat", ltexturesGetTextureFormat ); + assingGlobalFunction( "GenTextureMipmaps", ltexturesGenTextureMipmaps ); + assingGlobalFunction( "SetTextureFilter", ltexturesSetTextureFilter ); + assingGlobalFunction( "SetTextureWrap", ltexturesSetTextureWrap ); + assingGlobalFunction( "GetTextureSize", ltexturesGetTextureSize ); + assingGlobalFunction( "GetTextureMipmaps", ltexturesGetTextureMipmaps ); + assingGlobalFunction( "GetTextureFormat", ltexturesGetTextureFormat ); /* Color/pixel */ - lua_register( L, "RL_Fade", ltexturesFade ); - lua_register( L, "RL_ColorToInt", ltexturesColorToInt ); - lua_register( L, "RL_ColorNormalize", ltexturesColorNormalize ); - lua_register( L, "RL_ColorFromNormalized", ltexturesColorFromNormalized ); - lua_register( L, "RL_ColorToHSV", ltexturesColorToHSV ); - lua_register( L, "RL_ColorFromHSV", ltexturesColorFromHSV ); - lua_register( L, "RL_ColorAlpha", ltexturesColorAlpha ); - lua_register( L, "RL_ColorAlphaBlend", ltexturesColorAlphaBlend ); - lua_register( L, "RL_GetColor", ltexturesGetColor ); - lua_register( L, "RL_GetPixelColor", ltexturesGetPixelColor ); - lua_register( L, "RL_GetPixelDataSize", ltexturesGetPixelDataSize ); + assingGlobalFunction( "Fade", ltexturesFade ); + assingGlobalFunction( "ColorToInt", ltexturesColorToInt ); + assingGlobalFunction( "ColorNormalize", ltexturesColorNormalize ); + assingGlobalFunction( "ColorFromNormalized", ltexturesColorFromNormalized ); + assingGlobalFunction( "ColorToHSV", ltexturesColorToHSV ); + assingGlobalFunction( "ColorFromHSV", ltexturesColorFromHSV ); + assingGlobalFunction( "ColorAlpha", ltexturesColorAlpha ); + assingGlobalFunction( "ColorAlphaBlend", ltexturesColorAlphaBlend ); + assingGlobalFunction( "GetColor", ltexturesGetColor ); + assingGlobalFunction( "GetPixelColor", ltexturesGetPixelColor ); + assingGlobalFunction( "GetPixelDataSize", ltexturesGetPixelDataSize ); /* Models. */ /* Basic. */ - lua_register( L, "RL_DrawLine3D", lmodelsDrawLine3D ); - lua_register( L, "RL_DrawPoint3D", lmodelsDrawPoint3D ); - lua_register( L, "RL_DrawCircle3D", lmodelsDrawCircle3D ); - lua_register( L, "RL_DrawTriangle3D", lmodelsDrawTriangle3D ); - lua_register( L, "RL_DrawCube", lmodelsDrawCube ); - lua_register( L, "RL_DrawCubeWires", lmodelsDrawCubeWires ); - lua_register( L, "RL_DrawCubeTexture", lmodelsDrawCubeTexture ); - lua_register( L, "RL_DrawSphere", lmodelsDrawSphere ); - lua_register( L, "RL_DrawSphereEx", lmodelsDrawSphereEx ); - lua_register( L, "RL_DrawSphereWires", lmodelsDrawSphereWires ); - lua_register( L, "RL_DrawCylinder", lmodelsDrawCylinder ); - lua_register( L, "RL_DrawCylinderEx", lmodelsDrawCylinderEx ); - lua_register( L, "RL_DrawCylinderWires", lmodelsDrawCylinderWires ); - lua_register( L, "RL_DrawCylinderWiresEx", lmodelsDrawCylinderWiresEx ); - lua_register( L, "RL_DrawPlane", lmodelsDrawPlane ); - lua_register( L, "RL_DrawQuad3DTexture", lmodelDrawQuad3DTexture ); - lua_register( L, "RL_DrawRay", lmodelsDrawRay ); - lua_register( L, "RL_DrawGrid", lmodelsDrawGrid ); + assingGlobalFunction( "DrawLine3D", lmodelsDrawLine3D ); + assingGlobalFunction( "DrawPoint3D", lmodelsDrawPoint3D ); + assingGlobalFunction( "DrawCircle3D", lmodelsDrawCircle3D ); + assingGlobalFunction( "DrawTriangle3D", lmodelsDrawTriangle3D ); + assingGlobalFunction( "DrawCube", lmodelsDrawCube ); + assingGlobalFunction( "DrawCubeWires", lmodelsDrawCubeWires ); + assingGlobalFunction( "DrawCubeTexture", lmodelsDrawCubeTexture ); + assingGlobalFunction( "DrawSphere", lmodelsDrawSphere ); + assingGlobalFunction( "DrawSphereEx", lmodelsDrawSphereEx ); + assingGlobalFunction( "DrawSphereWires", lmodelsDrawSphereWires ); + assingGlobalFunction( "DrawCylinder", lmodelsDrawCylinder ); + assingGlobalFunction( "DrawCylinderEx", lmodelsDrawCylinderEx ); + assingGlobalFunction( "DrawCylinderWires", lmodelsDrawCylinderWires ); + assingGlobalFunction( "DrawCylinderWiresEx", lmodelsDrawCylinderWiresEx ); + assingGlobalFunction( "DrawPlane", lmodelsDrawPlane ); + assingGlobalFunction( "DrawQuad3DTexture", lmodelDrawQuad3DTexture ); + assingGlobalFunction( "DrawRay", lmodelsDrawRay ); + assingGlobalFunction( "DrawGrid", lmodelsDrawGrid ); /* Mesh. */ - lua_register( L, "RL_GenMeshPoly", lmodelsGenMeshPoly ); - lua_register( L, "RL_GenMeshPlane", lmodelsGenMeshPlane ); - lua_register( L, "RL_GenMeshCube", lmodelsGenMeshCube ); - lua_register( L, "RL_GenMeshSphere", lmodelsGenMeshSphere ); - lua_register( L, "RL_GenMeshCylinder", lmodelsGenMeshCylinder ); - lua_register( L, "RL_GenMeshCone", lmodelsGenMeshCone ); - lua_register( L, "RL_GenMeshTorus", lmodelsGenMeshTorus ); - lua_register( L, "RL_GenMeshKnot", lmodelsGenMeshKnot ); - lua_register( L, "RL_GenMeshHeightmap", lmodelsGenMeshHeightmap ); - lua_register( L, "RL_GenMeshCustom", lmodelsGenMeshCustom ); - lua_register( L, "RL_UpdateMesh", lmodelsUpdateMesh ); - lua_register( L, "RL_UnloadMesh", lmodelsUnloadMesh ); - lua_register( L, "RL_DrawMesh", lmodelsDrawMesh ); - lua_register( L, "RL_DrawMeshInstanced", lmodelsDrawMeshInstanced ); - lua_register( L, "RL_SetMeshColor", lmodelsSetMeshColor ); - lua_register( L, "RL_ExportMesh", lmodelsExportMesh ); - lua_register( L, "RL_GetMeshBoundingBox", lmodelsGetMeshBoundingBox ); - lua_register( L, "RL_GenMeshTangents", lmodelsGenMeshTangents ); + assingGlobalFunction( "GenMeshPoly", lmodelsGenMeshPoly ); + assingGlobalFunction( "GenMeshPlane", lmodelsGenMeshPlane ); + assingGlobalFunction( "GenMeshCube", lmodelsGenMeshCube ); + assingGlobalFunction( "GenMeshSphere", lmodelsGenMeshSphere ); + assingGlobalFunction( "GenMeshCylinder", lmodelsGenMeshCylinder ); + assingGlobalFunction( "GenMeshCone", lmodelsGenMeshCone ); + assingGlobalFunction( "GenMeshTorus", lmodelsGenMeshTorus ); + assingGlobalFunction( "GenMeshKnot", lmodelsGenMeshKnot ); + assingGlobalFunction( "GenMeshHeightmap", lmodelsGenMeshHeightmap ); + assingGlobalFunction( "GenMeshCustom", lmodelsGenMeshCustom ); + assingGlobalFunction( "UpdateMesh", lmodelsUpdateMesh ); + assingGlobalFunction( "UnloadMesh", lmodelsUnloadMesh ); + assingGlobalFunction( "DrawMesh", lmodelsDrawMesh ); + assingGlobalFunction( "DrawMeshInstanced", lmodelsDrawMeshInstanced ); + assingGlobalFunction( "SetMeshColor", lmodelsSetMeshColor ); + assingGlobalFunction( "ExportMesh", lmodelsExportMesh ); + assingGlobalFunction( "GetMeshBoundingBox", lmodelsGetMeshBoundingBox ); + assingGlobalFunction( "GenMeshTangents", lmodelsGenMeshTangents ); /* Material. */ - lua_register( L, "RL_LoadMaterialDefault", lmodelsLoadMaterialDefault ); - lua_register( L, "RL_CreateMaterial", lmodelsCreateMaterial ); - lua_register( L, "RL_UnloadMaterial", lmodelsUnloadMaterial ); - lua_register( L, "RL_SetMaterialTexture", lmodelsSetMaterialTexture ); - lua_register( L, "RL_SetMaterialColor", lmodelsSetMaterialColor ); - lua_register( L, "RL_SetMaterialValue", lmodelsSetMaterialValue ); - lua_register( L, "RL_SetMaterialShader", lmodelsSetMaterialShader ); + assingGlobalFunction( "LoadMaterialDefault", lmodelsLoadMaterialDefault ); + assingGlobalFunction( "CreateMaterial", lmodelsCreateMaterial ); + assingGlobalFunction( "UnloadMaterial", lmodelsUnloadMaterial ); + assingGlobalFunction( "SetMaterialTexture", lmodelsSetMaterialTexture ); + assingGlobalFunction( "SetMaterialColor", lmodelsSetMaterialColor ); + assingGlobalFunction( "SetMaterialValue", lmodelsSetMaterialValue ); + assingGlobalFunction( "SetMaterialShader", lmodelsSetMaterialShader ); /* Model. */ - lua_register( L, "RL_LoadModel", lmodelsLoadModel ); - lua_register( L, "RL_LoadModelFromMesh", lmodelsLoadModelFromMesh ); - lua_register( L, "RL_UnloadModel", lmodelsUnloadModel ); - lua_register( L, "RL_DrawModel", lmodelsDrawModel ); - lua_register( L, "RL_DrawModelEx", lmodelsDrawModelEx ); - lua_register( L, "RL_SetModelMaterial", lmodelsSetModelMaterial ); - lua_register( L, "RL_SetModelMeshMaterial", lmodelsSetModelMeshMaterial ); - lua_register( L, "RL_DrawBillboard", lmodelsDrawBillboard ); - lua_register( L, "RL_DrawBillboardRec", lmodelsDrawBillboardRec ); - lua_register( L, "RL_SetModelTransform", lmodelsSetModelTransform ); - lua_register( L, "RL_GetModelTransform", lmodelsGetModelTransform ); + assingGlobalFunction( "LoadModel", lmodelsLoadModel ); + assingGlobalFunction( "LoadModelFromMesh", lmodelsLoadModelFromMesh ); + assingGlobalFunction( "UnloadModel", lmodelsUnloadModel ); + assingGlobalFunction( "DrawModel", lmodelsDrawModel ); + assingGlobalFunction( "DrawModelEx", lmodelsDrawModelEx ); + assingGlobalFunction( "SetModelMaterial", lmodelsSetModelMaterial ); + assingGlobalFunction( "SetModelMeshMaterial", lmodelsSetModelMeshMaterial ); + assingGlobalFunction( "DrawBillboard", lmodelsDrawBillboard ); + assingGlobalFunction( "DrawBillboardRec", lmodelsDrawBillboardRec ); + assingGlobalFunction( "SetModelTransform", lmodelsSetModelTransform ); + assingGlobalFunction( "GetModelTransform", lmodelsGetModelTransform ); /* Animations. */ - lua_register( L, "RL_LoadModelAnimations", lmodelsLoadModelAnimations ); - lua_register( L, "RL_UpdateModelAnimation", lmodelsUpdateModelAnimation ); - lua_register( L, "RL_UnloadModelAnimations", lmodelsUnloadModelAnimations ); - lua_register( L, "RL_IsModelAnimationValid", lmodelsIsModelAnimationValid ); - lua_register( L, "RL_GetModelAnimationBoneCount", lmodelsGetModelAnimationBoneCount ); - lua_register( L, "RL_GetModelAnimationFrameCount", lmodelsGetModelAnimationFrameCount ); + assingGlobalFunction( "LoadModelAnimations", lmodelsLoadModelAnimations ); + assingGlobalFunction( "UpdateModelAnimation", lmodelsUpdateModelAnimation ); + assingGlobalFunction( "UnloadModelAnimations", lmodelsUnloadModelAnimations ); + assingGlobalFunction( "IsModelAnimationValid", lmodelsIsModelAnimationValid ); + assingGlobalFunction( "GetModelAnimationBoneCount", lmodelsGetModelAnimationBoneCount ); + assingGlobalFunction( "GetModelAnimationFrameCount", lmodelsGetModelAnimationFrameCount ); /* Collision. */ - lua_register( L, "RL_CheckCollisionSpheres", lmodelsCheckCollisionSpheres ); - lua_register( L, "RL_CheckCollisionBoxes", lmodelsCheckCollisionBoxes ); - lua_register( L, "RL_CheckCollisionBoxSphere", lmodelsCheckCollisionBoxSphere ); - lua_register( L, "RL_GetRayCollisionSphere", lmodelsGetRayCollisionSphere ); - lua_register( L, "RL_GetRayCollisionBox", lmodelsGetRayCollisionBox ); - lua_register( L, "RL_GetRayCollisionMesh", lmodelsGetRayCollisionMesh ); - lua_register( L, "RL_GetRayCollisionTriangle", lmodelsGetRayCollisionTriangle ); - lua_register( L, "RL_GetRayCollisionQuad", lmodelsGetRayCollisionQuad ); + assingGlobalFunction( "CheckCollisionSpheres", lmodelsCheckCollisionSpheres ); + assingGlobalFunction( "CheckCollisionBoxes", lmodelsCheckCollisionBoxes ); + assingGlobalFunction( "CheckCollisionBoxSphere", lmodelsCheckCollisionBoxSphere ); + assingGlobalFunction( "GetRayCollisionSphere", lmodelsGetRayCollisionSphere ); + assingGlobalFunction( "GetRayCollisionBox", lmodelsGetRayCollisionBox ); + assingGlobalFunction( "GetRayCollisionMesh", lmodelsGetRayCollisionMesh ); + assingGlobalFunction( "GetRayCollisionTriangle", lmodelsGetRayCollisionTriangle ); + assingGlobalFunction( "GetRayCollisionQuad", lmodelsGetRayCollisionQuad ); /* Text. */ /* Loading. */ - lua_register( L, "RL_LoadFont", ltextLoadFont ); - lua_register( L, "RL_LoadFontEx", ltextLoadFontEx ); - lua_register( L, "RL_LoadFontFromImage", ltextLoadFontFromImage ); - lua_register( L, "RL_UnloadFont", ltextUnloadFont ); + assingGlobalFunction( "LoadFont", ltextLoadFont ); + assingGlobalFunction( "LoadFontEx", ltextLoadFontEx ); + assingGlobalFunction( "LoadFontFromImage", ltextLoadFontFromImage ); + assingGlobalFunction( "UnloadFont", ltextUnloadFont ); /* Drawing. */ - lua_register( L, "RL_DrawFPS", ltextDrawFPS ); - lua_register( L, "RL_DrawText", ltextDrawText ); - lua_register( L, "RL_DrawTextPro", ltextDrawTextPro ); + assingGlobalFunction( "DrawFPS", ltextDrawFPS ); + assingGlobalFunction( "DrawText", ltextDrawText ); + assingGlobalFunction( "DrawTextPro", ltextDrawTextPro ); /* Misc. */ - lua_register( L, "RL_MeasureText", ltextMeasureText ); - lua_register( L, "RL_GetFontBaseSize", ltextGetFontBaseSize ); - lua_register( L, "RL_GetFontGlyphCount", ltextGetFontGlyphCount ); - lua_register( L, "RL_GetFontGlyphPadding", ltextGetFontGlyphPadding ); + assingGlobalFunction( "MeasureText", ltextMeasureText ); + assingGlobalFunction( "GetFontBaseSize", ltextGetFontBaseSize ); + assingGlobalFunction( "GetFontGlyphCount", ltextGetFontGlyphCount ); + assingGlobalFunction( "GetFontGlyphPadding", ltextGetFontGlyphPadding ); /* Audio. */ /* Audio device management. */ - lua_register( L, "RL_SetMasterVolume", laudioSetMasterVolume ); + assingGlobalFunction( "SetMasterVolume", laudioSetMasterVolume ); /* Wave/Sound Loading. */ - lua_register( L, "RL_LoadSound", laudioLoadSound ); - lua_register( L, "RL_LoadWave", laudioLoadWave ); - lua_register( L, "RL_LoadSoundFromWave", laudioLoadSoundFromWave ); - lua_register( L, "RL_UnloadSound", laudioUnloadSound ); - lua_register( L, "RL_UnloadWave", laudioUnloadWave ); - lua_register( L, "RL_ExportWave", laudioExportWave ); - lua_register( L, "RL_ExportWaveAsCode", laudioExportWaveAsCode ); + assingGlobalFunction( "LoadSound", laudioLoadSound ); + assingGlobalFunction( "LoadWave", laudioLoadWave ); + assingGlobalFunction( "LoadSoundFromWave", laudioLoadSoundFromWave ); + assingGlobalFunction( "UnloadSound", laudioUnloadSound ); + assingGlobalFunction( "UnloadWave", laudioUnloadWave ); + assingGlobalFunction( "ExportWave", laudioExportWave ); + assingGlobalFunction( "ExportWaveAsCode", laudioExportWaveAsCode ); /* Wave/Sound management */ - lua_register( L, "RL_PlaySound", laudioPlaySound ); - lua_register( L, "RL_StopSound", laudioStopSound ); - lua_register( L, "RL_PauseSound", laudioPauseSound ); - lua_register( L, "RL_ResumeSound", laudioResumeSound ); - lua_register( L, "RL_PlaySoundMulti", laudioPlaySoundMulti ); - lua_register( L, "RL_StopSoundMulti", laudioStopSoundMulti ); - lua_register( L, "RL_GetSoundsPlaying", laudioGetSoundsPlaying ); - lua_register( L, "RL_IsSoundPlaying", laudioIsSoundPlaying ); - lua_register( L, "RL_SetSoundVolume", laudioSetSoundVolume ); - lua_register( L, "RL_SetSoundPitch", laudioSetSoundPitch ); - lua_register( L, "RL_SetSoundPan", laudioSetSoundPan ); - lua_register( L, "RL_WaveFormat", laudioWaveFormat ); - lua_register( L, "RL_WaveCopy", laudioWaveCopy ); - lua_register( L, "RL_WaveCrop", laudioWaveCrop ); + assingGlobalFunction( "PlaySound", laudioPlaySound ); + assingGlobalFunction( "StopSound", laudioStopSound ); + assingGlobalFunction( "PauseSound", laudioPauseSound ); + assingGlobalFunction( "ResumeSound", laudioResumeSound ); + assingGlobalFunction( "PlaySoundMulti", laudioPlaySoundMulti ); + assingGlobalFunction( "StopSoundMulti", laudioStopSoundMulti ); + assingGlobalFunction( "GetSoundsPlaying", laudioGetSoundsPlaying ); + assingGlobalFunction( "IsSoundPlaying", laudioIsSoundPlaying ); + assingGlobalFunction( "SetSoundVolume", laudioSetSoundVolume ); + assingGlobalFunction( "SetSoundPitch", laudioSetSoundPitch ); + assingGlobalFunction( "SetSoundPan", laudioSetSoundPan ); + assingGlobalFunction( "WaveFormat", laudioWaveFormat ); + assingGlobalFunction( "WaveCopy", laudioWaveCopy ); + assingGlobalFunction( "WaveCrop", laudioWaveCrop ); /* Music management. */ - lua_register( L, "RL_LoadMusicStream", laudioLoadMusicStream ); - lua_register( L, "RL_PlayMusicStream", laudioPlayMusicStream ); - lua_register( L, "RL_IsMusicStreamPlaying", laudioIsMusicStreamPlaying ); - lua_register( L, "RL_StopMusicStream", laudioStopMusicStream ); - lua_register( L, "RL_PauseMusicStream", laudioPauseMusicStream ); - lua_register( L, "RL_ResumeMusicStream", laudioResumeMusicStream ); - lua_register( L, "RL_SetMusicVolume", laudioSetMusicVolume ); - lua_register( L, "RL_SetMusicPitch", laudioSetMusicPitch ); - lua_register( L, "RL_SetMusicPan", laudioSetMusicPan ); - lua_register( L, "RL_GetMusicTimeLength", laudioGetMusicTimeLength ); - lua_register( L, "RL_GetMusicTimePlayed", laudioGetMusicTimePlayed ); + assingGlobalFunction( "LoadMusicStream", laudioLoadMusicStream ); + assingGlobalFunction( "PlayMusicStream", laudioPlayMusicStream ); + assingGlobalFunction( "IsMusicStreamPlaying", laudioIsMusicStreamPlaying ); + assingGlobalFunction( "StopMusicStream", laudioStopMusicStream ); + assingGlobalFunction( "PauseMusicStream", laudioPauseMusicStream ); + assingGlobalFunction( "ResumeMusicStream", laudioResumeMusicStream ); + assingGlobalFunction( "SetMusicVolume", laudioSetMusicVolume ); + assingGlobalFunction( "SetMusicPitch", laudioSetMusicPitch ); + assingGlobalFunction( "SetMusicPan", laudioSetMusicPan ); + assingGlobalFunction( "GetMusicTimeLength", laudioGetMusicTimeLength ); + assingGlobalFunction( "GetMusicTimePlayed", laudioGetMusicTimePlayed ); /* Math. */ /* Utils. */ - lua_register( L, "RL_Clamp", lmathClamp ); - lua_register( L, "RL_Lerp", lmathLerp ); - lua_register( L, "RL_Normalize", lmathNormalize ); - lua_register( L, "RL_Remap", lmathRemap ); - lua_register( L, "RL_Wrap", lmathWrap ); - lua_register( L, "RL_FloatEquals", lmathFloatEquals ); + assingGlobalFunction( "Clamp", lmathClamp ); + assingGlobalFunction( "Lerp", lmathLerp ); + assingGlobalFunction( "Normalize", lmathNormalize ); + assingGlobalFunction( "Remap", lmathRemap ); + assingGlobalFunction( "Wrap", lmathWrap ); + assingGlobalFunction( "FloatEquals", lmathFloatEquals ); /* Vector2. */ - lua_register( L, "RL_Vector2Zero", lmathVector2Zero ); - lua_register( L, "RL_Vector2One", lmathVector2One ); - lua_register( L, "RL_Vector2Add", lmathVector2Add ); - lua_register( L, "RL_Vector2AddValue", lmathVector2AddValue ); - lua_register( L, "RL_Vector2Subtract", lmathVector2Subtract ); - lua_register( L, "RL_Vector2SubtractValue", lmathVector2SubtractValue ); - lua_register( L, "RL_Vector2Length", lmathVector2Length ); - lua_register( L, "RL_Vector2LengthSqr", lmathVector2LengthSqr ); - lua_register( L, "RL_Vector2DotProduct", lmathVector2DotProduct ); - lua_register( L, "RL_Vector2Distance", lmathVector2Distance ); - lua_register( L, "RL_Vector2DistanceSqr", lmathVector2DistanceSqr ); - lua_register( L, "RL_Vector2Angle", lmathVector2Angle ); - lua_register( L, "RL_Vector2Scale", lmathVector2Scale ); - lua_register( L, "RL_Vector2Multiply", lmathVector2Multiply ); - lua_register( L, "RL_Vector2Negate", lmathVector2Negate ); - lua_register( L, "RL_Vector2Divide", lmathVector2Divide ); - lua_register( L, "RL_Vector2Normalize", lmathVector2Normalize ); - lua_register( L, "RL_Vector2Transform", lmathVector2Transform ); - lua_register( L, "RL_Vector2Lerp", lmathVector2Lerp ); - lua_register( L, "RL_Vector2Reflect", lmathVector2Reflect ); - lua_register( L, "RL_Vector2Rotate", lmathVector2Rotate ); - lua_register( L, "RL_Vector2MoveTowards", lmathVector2MoveTowards ); - lua_register( L, "RL_Vector2Invert", lmathVector2Invert ); - lua_register( L, "RL_Vector2Clamp", lmathVector2Clamp ); - lua_register( L, "RL_Vector2ClampValue", lmathVector2ClampValue ); - lua_register( L, "RL_Vector2Equals", lmathVector2Equals ); + assingGlobalFunction( "Vector2Zero", lmathVector2Zero ); + assingGlobalFunction( "Vector2One", lmathVector2One ); + assingGlobalFunction( "Vector2Add", lmathVector2Add ); + assingGlobalFunction( "Vector2AddValue", lmathVector2AddValue ); + assingGlobalFunction( "Vector2Subtract", lmathVector2Subtract ); + assingGlobalFunction( "Vector2SubtractValue", lmathVector2SubtractValue ); + assingGlobalFunction( "Vector2Length", lmathVector2Length ); + assingGlobalFunction( "Vector2LengthSqr", lmathVector2LengthSqr ); + assingGlobalFunction( "Vector2DotProduct", lmathVector2DotProduct ); + assingGlobalFunction( "Vector2Distance", lmathVector2Distance ); + assingGlobalFunction( "Vector2DistanceSqr", lmathVector2DistanceSqr ); + assingGlobalFunction( "Vector2Angle", lmathVector2Angle ); + assingGlobalFunction( "Vector2Scale", lmathVector2Scale ); + assingGlobalFunction( "Vector2Multiply", lmathVector2Multiply ); + assingGlobalFunction( "Vector2Negate", lmathVector2Negate ); + assingGlobalFunction( "Vector2Divide", lmathVector2Divide ); + assingGlobalFunction( "Vector2Normalize", lmathVector2Normalize ); + assingGlobalFunction( "Vector2Transform", lmathVector2Transform ); + assingGlobalFunction( "Vector2Lerp", lmathVector2Lerp ); + assingGlobalFunction( "Vector2Reflect", lmathVector2Reflect ); + assingGlobalFunction( "Vector2Rotate", lmathVector2Rotate ); + assingGlobalFunction( "Vector2MoveTowards", lmathVector2MoveTowards ); + assingGlobalFunction( "Vector2Invert", lmathVector2Invert ); + assingGlobalFunction( "Vector2Clamp", lmathVector2Clamp ); + assingGlobalFunction( "Vector2ClampValue", lmathVector2ClampValue ); + assingGlobalFunction( "Vector2Equals", lmathVector2Equals ); /* Vector3. */ - lua_register( L, "RL_Vector3Zero", lmathVector3Zero ); - lua_register( L, "RL_Vector3One", lmathVector3One ); - lua_register( L, "RL_Vector3Add", lmathVector3Add ); - lua_register( L, "RL_Vector3AddValue", lmathVector3AddValue ); - lua_register( L, "RL_Vector3Subtract", lmathVector3Subtract ); - lua_register( L, "RL_Vector3SubtractValue", lmathVector3SubtractValue ); - lua_register( L, "RL_Vector3Scale", lmathVector3Scale ); - lua_register( L, "RL_Vector3Multiply", lmathVector3Multiply ); - lua_register( L, "RL_Vector3CrossProduct", lmathVector3CrossProduct ); - lua_register( L, "RL_Vector3Perpendicular", lmathVector3Perpendicular ); - lua_register( L, "RL_Vector3Length", lmathVector3Length ); - lua_register( L, "RL_Vector3LengthSqr", lmathVector3LengthSqr ); - lua_register( L, "RL_Vector3DotProduct", lmathVector3DotProduct ); - lua_register( L, "RL_Vector3Distance", lmathVector3Distance ); - lua_register( L, "RL_Vector3DistanceSqr", lmathVector3DistanceSqr ); - lua_register( L, "RL_Vector3Angle", lmathVector3Angle ); - lua_register( L, "RL_Vector3Negate", lmathVector3Negate ); - lua_register( L, "RL_Vector3Divide", lmathVector3Divide ); - lua_register( L, "RL_Vector3Normalize", lmathVector3Normalize ); - lua_register( L, "RL_Vector3OrthoNormalize", lmathVector3OrthoNormalize ); - lua_register( L, "RL_Vector3Transform", lmathVector3Transform ); - lua_register( L, "RL_Vector3RotateByQuaternion", lmathVector3RotateByQuaternion ); - lua_register( L, "RL_Vector3Lerp", lmathVector3Lerp ); - lua_register( L, "RL_Vector3Reflect", lmathVector3Reflect ); - lua_register( L, "RL_Vector3Min", lmathVector3Min ); - lua_register( L, "RL_Vector3Max", lmathVector3Max ); - lua_register( L, "RL_Vector3Barycenter", lmathVector3Barycenter ); - lua_register( L, "RL_Vector3Unproject", lmathVector3Unproject ); - lua_register( L, "RL_Vector3Invert", lmathVector3Invert ); - lua_register( L, "RL_Vector3Clamp", lmathVector3Clamp ); - lua_register( L, "RL_Vector3ClampValue", lmathVector3ClampValue ); - lua_register( L, "RL_Vector3Equals", lmathVector3Equals ); - lua_register( L, "RL_Vector3Refract", lmathVector3Refract ); + assingGlobalFunction( "Vector3Zero", lmathVector3Zero ); + assingGlobalFunction( "Vector3One", lmathVector3One ); + assingGlobalFunction( "Vector3Add", lmathVector3Add ); + assingGlobalFunction( "Vector3AddValue", lmathVector3AddValue ); + assingGlobalFunction( "Vector3Subtract", lmathVector3Subtract ); + assingGlobalFunction( "Vector3SubtractValue", lmathVector3SubtractValue ); + assingGlobalFunction( "Vector3Scale", lmathVector3Scale ); + assingGlobalFunction( "Vector3Multiply", lmathVector3Multiply ); + assingGlobalFunction( "Vector3CrossProduct", lmathVector3CrossProduct ); + assingGlobalFunction( "Vector3Perpendicular", lmathVector3Perpendicular ); + assingGlobalFunction( "Vector3Length", lmathVector3Length ); + assingGlobalFunction( "Vector3LengthSqr", lmathVector3LengthSqr ); + assingGlobalFunction( "Vector3DotProduct", lmathVector3DotProduct ); + assingGlobalFunction( "Vector3Distance", lmathVector3Distance ); + assingGlobalFunction( "Vector3DistanceSqr", lmathVector3DistanceSqr ); + assingGlobalFunction( "Vector3Angle", lmathVector3Angle ); + assingGlobalFunction( "Vector3Negate", lmathVector3Negate ); + assingGlobalFunction( "Vector3Divide", lmathVector3Divide ); + assingGlobalFunction( "Vector3Normalize", lmathVector3Normalize ); + assingGlobalFunction( "Vector3OrthoNormalize", lmathVector3OrthoNormalize ); + assingGlobalFunction( "Vector3Transform", lmathVector3Transform ); + assingGlobalFunction( "Vector3RotateByQuaternion", lmathVector3RotateByQuaternion ); + assingGlobalFunction( "Vector3Lerp", lmathVector3Lerp ); + assingGlobalFunction( "Vector3Reflect", lmathVector3Reflect ); + assingGlobalFunction( "Vector3Min", lmathVector3Min ); + assingGlobalFunction( "Vector3Max", lmathVector3Max ); + assingGlobalFunction( "Vector3Barycenter", lmathVector3Barycenter ); + assingGlobalFunction( "Vector3Unproject", lmathVector3Unproject ); + assingGlobalFunction( "Vector3Invert", lmathVector3Invert ); + assingGlobalFunction( "Vector3Clamp", lmathVector3Clamp ); + assingGlobalFunction( "Vector3ClampValue", lmathVector3ClampValue ); + assingGlobalFunction( "Vector3Equals", lmathVector3Equals ); + assingGlobalFunction( "Vector3Refract", lmathVector3Refract ); /* Matrix. */ - lua_register( L, "RL_MatrixDeterminant", lmathMatrixDeterminant ); - lua_register( L, "RL_MatrixTrace", lmathMatrixTrace ); - lua_register( L, "RL_MatrixTranspose", lmathMatrixTranspose ); - lua_register( L, "RL_MatrixInvert", lmathMatrixInvert ); - lua_register( L, "RL_MatrixIdentity", lmathMatrixIdentity ); - lua_register( L, "RL_MatrixAdd", lmathMatrixAdd ); - lua_register( L, "RL_MatrixSubtract", lmathMatrixSubtract ); - lua_register( L, "RL_MatrixMultiply", lmathMatrixMultiply ); - lua_register( L, "RL_MatrixTranslate", lmathMatrixTranslate ); - lua_register( L, "RL_MatrixRotate", lmathMatrixRotate ); - lua_register( L, "RL_MatrixRotateX", lmathMatrixRotateX ); - lua_register( L, "RL_MatrixRotateY", lmathMatrixRotateY ); - lua_register( L, "RL_MatrixRotateZ", lmathMatrixRotateZ ); - lua_register( L, "RL_MatrixRotateXYZ", lmathMatrixRotateXYZ ); - lua_register( L, "RL_MatrixRotateZYX", lmathMatrixRotateZYX ); - lua_register( L, "RL_MatrixScale", lmathMatrixScale ); - lua_register( L, "RL_MatrixFrustum", lmathMatrixFrustum ); - lua_register( L, "RL_MatrixPerspective", lmathMatrixPerspective ); - lua_register( L, "RL_MatrixOrtho", lmathMatrixOrtho ); - lua_register( L, "RL_MatrixLookAt", lmathMatrixLookAt ); + assingGlobalFunction( "MatrixDeterminant", lmathMatrixDeterminant ); + assingGlobalFunction( "MatrixTrace", lmathMatrixTrace ); + assingGlobalFunction( "MatrixTranspose", lmathMatrixTranspose ); + assingGlobalFunction( "MatrixInvert", lmathMatrixInvert ); + assingGlobalFunction( "MatrixIdentity", lmathMatrixIdentity ); + assingGlobalFunction( "MatrixAdd", lmathMatrixAdd ); + assingGlobalFunction( "MatrixSubtract", lmathMatrixSubtract ); + assingGlobalFunction( "MatrixMultiply", lmathMatrixMultiply ); + assingGlobalFunction( "MatrixTranslate", lmathMatrixTranslate ); + assingGlobalFunction( "MatrixRotate", lmathMatrixRotate ); + assingGlobalFunction( "MatrixRotateX", lmathMatrixRotateX ); + assingGlobalFunction( "MatrixRotateY", lmathMatrixRotateY ); + assingGlobalFunction( "MatrixRotateZ", lmathMatrixRotateZ ); + assingGlobalFunction( "MatrixRotateXYZ", lmathMatrixRotateXYZ ); + assingGlobalFunction( "MatrixRotateZYX", lmathMatrixRotateZYX ); + assingGlobalFunction( "MatrixScale", lmathMatrixScale ); + assingGlobalFunction( "MatrixFrustum", lmathMatrixFrustum ); + assingGlobalFunction( "MatrixPerspective", lmathMatrixPerspective ); + assingGlobalFunction( "MatrixOrtho", lmathMatrixOrtho ); + assingGlobalFunction( "MatrixLookAt", lmathMatrixLookAt ); /* Quaternion. */ - lua_register( L, "RL_QuaternionAdd", lmathQuaternionAdd ); - lua_register( L, "RL_QuaternionAddValue", lmathQuaternionAddValue ); - lua_register( L, "RL_QuaternionSubtract", lmathQuaternionSubtract ); - lua_register( L, "RL_QuaternionSubtractValue", lmathQuaternionSubtractValue ); - lua_register( L, "RL_QuaternionIdentity", lmathQuaternionIdentity ); - lua_register( L, "RL_QuaternionLength", lmathQuaternionLength ); - lua_register( L, "RL_QuaternionNormalize", lmathQuaternionNormalize ); - lua_register( L, "RL_QuaternionInvert", lmathQuaternionInvert ); - lua_register( L, "RL_QuaternionMultiply", lmathQuaternionMultiply ); - lua_register( L, "RL_QuaternionScale", lmathQuaternionScale ); - lua_register( L, "RL_QuaternionDivide", lmathQuaternionDivide ); - lua_register( L, "RL_QuaternionLerp", lmathQuaternionLerp ); - lua_register( L, "RL_QuaternionNlerp", lmathQuaternionNlerp ); - lua_register( L, "RL_QuaternionSlerp", lmathQuaternionSlerp ); - lua_register( L, "RL_QuaternionFromVector3ToVector3", lmathQuaternionFromVector3ToVector3 ); - lua_register( L, "RL_QuaternionFromMatrix", lmathQuaternionFromMatrix ); - lua_register( L, "RL_QuaternionToMatrix", lmathQuaternionToMatrix ); - lua_register( L, "RL_QuaternionFromAxisAngle", lmathQuaternionFromAxisAngle ); - lua_register( L, "RL_QuaternionToAxisAngle", lmathQuaternionToAxisAngle ); - lua_register( L, "RL_QuaternionFromEuler", lmathQuaternionFromEuler ); - lua_register( L, "RL_QuaternionToEuler", lmathQuaternionToEuler ); - lua_register( L, "RL_QuaternionTransform", lmathQuaternionTransform ); - lua_register( L, "RL_QuaternionEquals", lmathQuaternionEquals ); + assingGlobalFunction( "QuaternionAdd", lmathQuaternionAdd ); + assingGlobalFunction( "QuaternionAddValue", lmathQuaternionAddValue ); + assingGlobalFunction( "QuaternionSubtract", lmathQuaternionSubtract ); + assingGlobalFunction( "QuaternionSubtractValue", lmathQuaternionSubtractValue ); + assingGlobalFunction( "QuaternionIdentity", lmathQuaternionIdentity ); + assingGlobalFunction( "QuaternionLength", lmathQuaternionLength ); + assingGlobalFunction( "QuaternionNormalize", lmathQuaternionNormalize ); + assingGlobalFunction( "QuaternionInvert", lmathQuaternionInvert ); + assingGlobalFunction( "QuaternionMultiply", lmathQuaternionMultiply ); + assingGlobalFunction( "QuaternionScale", lmathQuaternionScale ); + assingGlobalFunction( "QuaternionDivide", lmathQuaternionDivide ); + assingGlobalFunction( "QuaternionLerp", lmathQuaternionLerp ); + assingGlobalFunction( "QuaternionNlerp", lmathQuaternionNlerp ); + assingGlobalFunction( "QuaternionSlerp", lmathQuaternionSlerp ); + assingGlobalFunction( "QuaternionFromVector3ToVector3", lmathQuaternionFromVector3ToVector3 ); + assingGlobalFunction( "QuaternionFromMatrix", lmathQuaternionFromMatrix ); + assingGlobalFunction( "QuaternionToMatrix", lmathQuaternionToMatrix ); + assingGlobalFunction( "QuaternionFromAxisAngle", lmathQuaternionFromAxisAngle ); + assingGlobalFunction( "QuaternionToAxisAngle", lmathQuaternionToAxisAngle ); + assingGlobalFunction( "QuaternionFromEuler", lmathQuaternionFromEuler ); + assingGlobalFunction( "QuaternionToEuler", lmathQuaternionToEuler ); + assingGlobalFunction( "QuaternionTransform", lmathQuaternionTransform ); + assingGlobalFunction( "QuaternionEquals", lmathQuaternionEquals ); /* Gui. */ /* Global. */ - lua_register( L, "RL_GuiEnable", lguiGuiEnable ); - lua_register( L, "RL_GuiDisable", lguiGuiDisable ); - lua_register( L, "RL_GuiLock", lguiGuiLock ); - lua_register( L, "RL_GuiUnlock", lguiGuiUnlock ); - lua_register( L, "RL_GuiIsLocked", lguiGuiIsLocked ); - lua_register( L, "RL_GuiFade", lguiGuiFade ); - lua_register( L, "RL_GuiSetState", lguiGuiSetState ); - lua_register( L, "RL_GuiGetState", lguiGuiGetState ); + assingGlobalFunction( "GuiEnable", lguiGuiEnable ); + assingGlobalFunction( "GuiDisable", lguiGuiDisable ); + assingGlobalFunction( "GuiLock", lguiGuiLock ); + assingGlobalFunction( "GuiUnlock", lguiGuiUnlock ); + assingGlobalFunction( "GuiIsLocked", lguiGuiIsLocked ); + assingGlobalFunction( "GuiFade", lguiGuiFade ); + assingGlobalFunction( "GuiSetState", lguiGuiSetState ); + assingGlobalFunction( "GuiGetState", lguiGuiGetState ); /* Font. */ - lua_register( L, "RL_GuiSetFont", lguiGuiSetFont ); + assingGlobalFunction( "GuiSetFont", lguiGuiSetFont ); /* Style. */ - lua_register( L, "RL_GuiSetStyle", lguiGuiSetStyle ); - lua_register( L, "RL_GuiGetStyle", lguiGuiGetStyle ); - lua_register( L, "RL_GuiLoadStyle", lguiGuiLoadStyle ); - lua_register( L, "RL_GuiLoadStyleDefault", lguiGuiLoadStyleDefault ); + assingGlobalFunction( "GuiSetStyle", lguiGuiSetStyle ); + assingGlobalFunction( "GuiGetStyle", lguiGuiGetStyle ); + assingGlobalFunction( "GuiLoadStyle", lguiGuiLoadStyle ); + assingGlobalFunction( "GuiLoadStyleDefault", lguiGuiLoadStyleDefault ); /* Container. */ - lua_register( L, "RL_GuiWindowBox", lguiGuiWindowBox ); - lua_register( L, "RL_GuiGroupBox", lguiGuiGroupBox ); - lua_register( L, "RL_GuiLine", lguiGuiLine ); - lua_register( L, "RL_GuiPanel", lguiGuiPanel ); - lua_register( L, "RL_GuiScrollPanel", lguiGuiScrollPanel ); + assingGlobalFunction( "GuiWindowBox", lguiGuiWindowBox ); + assingGlobalFunction( "GuiGroupBox", lguiGuiGroupBox ); + assingGlobalFunction( "GuiLine", lguiGuiLine ); + assingGlobalFunction( "GuiPanel", lguiGuiPanel ); + assingGlobalFunction( "GuiScrollPanel", lguiGuiScrollPanel ); /* Basic. */ - lua_register( L, "RL_GuiLabel", lguiGuiLabel ); - lua_register( L, "RL_GuiButton", lguiGuiButton ); - lua_register( L, "RL_GuiLabelButton", lguiGuiLabelButton ); - lua_register( L, "RL_GuiToggle", lguiGuiToggle ); - lua_register( L, "RL_GuiToggleGroup", lguiGuiToggleGroup ); - lua_register( L, "RL_GuiCheckBox", lguiGuiCheckBox ); - lua_register( L, "RL_GuiComboBox", lguiGuiComboBox ); - lua_register( L, "RL_GuiTextBox", lguiGuiTextBox ); - lua_register( L, "RL_GuiTextBoxMulti", lguiGuiTextBoxMulti ); - lua_register( L, "RL_GuiSpinner", lguiGuiSpinner ); - lua_register( L, "RL_GuiValueBox", lguiGuiValueBox ); - lua_register( L, "RL_GuiSlider", lguiGuiSlider ); - lua_register( L, "RL_GuiSliderBar", lguiGuiSliderBar ); - lua_register( L, "RL_GuiProgressBar", lguiGuiProgressBar ); - lua_register( L, "RL_GuiScrollBar", lguiGuiScrollBar ); - lua_register( L, "RL_GuiDropdownBox", lguiGuiDropdownBox ); - lua_register( L, "RL_GuiStatusBar", lguiGuiStatusBar ); - lua_register( L, "RL_GuiDummyRec", lguiGuiDummyRec ); - lua_register( L, "RL_GuiGrid", lguiGuiGrid ); + assingGlobalFunction( "GuiLabel", lguiGuiLabel ); + assingGlobalFunction( "GuiButton", lguiGuiButton ); + assingGlobalFunction( "GuiLabelButton", lguiGuiLabelButton ); + assingGlobalFunction( "GuiToggle", lguiGuiToggle ); + assingGlobalFunction( "GuiToggleGroup", lguiGuiToggleGroup ); + assingGlobalFunction( "GuiCheckBox", lguiGuiCheckBox ); + assingGlobalFunction( "GuiComboBox", lguiGuiComboBox ); + assingGlobalFunction( "GuiTextBox", lguiGuiTextBox ); + assingGlobalFunction( "GuiTextBoxMulti", lguiGuiTextBoxMulti ); + assingGlobalFunction( "GuiSpinner", lguiGuiSpinner ); + assingGlobalFunction( "GuiValueBox", lguiGuiValueBox ); + assingGlobalFunction( "GuiSlider", lguiGuiSlider ); + assingGlobalFunction( "GuiSliderBar", lguiGuiSliderBar ); + assingGlobalFunction( "GuiProgressBar", lguiGuiProgressBar ); + assingGlobalFunction( "GuiScrollBar", lguiGuiScrollBar ); + assingGlobalFunction( "GuiDropdownBox", lguiGuiDropdownBox ); + assingGlobalFunction( "GuiStatusBar", lguiGuiStatusBar ); + assingGlobalFunction( "GuiDummyRec", lguiGuiDummyRec ); + assingGlobalFunction( "GuiGrid", lguiGuiGrid ); /* Advanced. */ - lua_register( L, "RL_GuiListView", lguiGuiListView ); - lua_register( L, "RL_GuiListViewEx", lguiGuiListViewEx ); - lua_register( L, "RL_GuiMessageBox", lguiGuiMessageBox ); - lua_register( L, "RL_GuiTextInputBox", lguiGuiTextInputBox ); - lua_register( L, "RL_GuiColorPicker", lguiGuiColorPicker ); - lua_register( L, "RL_GuiColorPanel", lguiGuiColorPanel ); - lua_register( L, "RL_GuiColorBarAlpha", lguiGuiColorBarAlpha ); - lua_register( L, "RL_GuiColorBarHue", lguiGuiColorBarHue ); + assingGlobalFunction( "GuiListView", lguiGuiListView ); + assingGlobalFunction( "GuiListViewEx", lguiGuiListViewEx ); + assingGlobalFunction( "GuiMessageBox", lguiGuiMessageBox ); + assingGlobalFunction( "GuiTextInputBox", lguiGuiTextInputBox ); + assingGlobalFunction( "GuiColorPicker", lguiGuiColorPicker ); + assingGlobalFunction( "GuiColorPanel", lguiGuiColorPanel ); + assingGlobalFunction( "GuiColorBarAlpha", lguiGuiColorBarAlpha ); + assingGlobalFunction( "GuiColorBarHue", lguiGuiColorBarHue ); /* Icons. */ - lua_register( L, "RL_GuiIconText", lguiGuiIconText ); - lua_register( L, "RL_GuiDrawIcon", lguiGuiDrawIcon ); - lua_register( L, "RL_GuiSetIconScale", lguiGuiSetIconScale ); - lua_register( L, "RL_GuiSetIconPixel", lguiGuiSetIconPixel ); - lua_register( L, "RL_GuiClearIconPixel", lguiGuiClearIconPixel ); - lua_register( L, "RL_GuiCheckIconPixel", lguiGuiCheckIconPixel ); + assingGlobalFunction( "GuiIconText", lguiGuiIconText ); + assingGlobalFunction( "GuiDrawIcon", lguiGuiDrawIcon ); + assingGlobalFunction( "GuiSetIconScale", lguiGuiSetIconScale ); + assingGlobalFunction( "GuiSetIconPixel", lguiGuiSetIconPixel ); + assingGlobalFunction( "GuiClearIconPixel", lguiGuiClearIconPixel ); + assingGlobalFunction( "GuiCheckIconPixel", lguiGuiCheckIconPixel ); /* Lights */ /* Basics. */ - lua_register( L, "RL_CreateLight", llightsCreateLight ); - lua_register( L, "RL_UpdateLightValues", llightsUpdateLightValues ); + assingGlobalFunction( "CreateLight", llightsCreateLight ); + assingGlobalFunction( "UpdateLightValues", llightsUpdateLightValues ); /* RLGL */ /* General render state. */ - lua_register( L, "RL_rlglSetLineWidth", lrlglSetLineWidth ); - lua_register( L, "RL_rlglGetLineWidth", lrlglGetLineWidth ); + assingGlobalFunction( "rlglSetLineWidth", lrlglSetLineWidth ); + assingGlobalFunction( "rlglGetLineWidth", lrlglGetLineWidth ); /* Easings */ /* Linear Easing functions. */ - lua_register( L, "RL_EaseLinear", leasingsEaseLinear ); + assingGlobalFunction( "EaseLinear", leasingsEaseLinear ); /* Sine Easing functions. */ - lua_register( L, "RL_EaseSineIn", leasingsEaseSineIn ); - lua_register( L, "RL_EaseSineOut", leasingsEaseSineOut ); - lua_register( L, "RL_EaseSineInOut", leasingsEaseSineInOut ); + assingGlobalFunction( "EaseSineIn", leasingsEaseSineIn ); + assingGlobalFunction( "EaseSineOut", leasingsEaseSineOut ); + assingGlobalFunction( "EaseSineInOut", leasingsEaseSineInOut ); /* Circular Easing functions. */ - lua_register( L, "RL_EaseCircIn", leasingsEaseCircIn ); - lua_register( L, "RL_EaseCircOut", leasingsEaseCircOut ); - lua_register( L, "RL_EaseCircInOut", leasingsEaseCircInOut ); + assingGlobalFunction( "EaseCircIn", leasingsEaseCircIn ); + assingGlobalFunction( "EaseCircOut", leasingsEaseCircOut ); + assingGlobalFunction( "EaseCircInOut", leasingsEaseCircInOut ); /* Cubic Easing functions. */ - lua_register( L, "RL_EaseCubicIn", leasingsEaseCubicIn ); - lua_register( L, "RL_EaseCubicOut", leasingsEaseCubicOut ); - lua_register( L, "RL_EaseCubicInOut", leasingsEaseCubicInOut ); + assingGlobalFunction( "EaseCubicIn", leasingsEaseCubicIn ); + assingGlobalFunction( "EaseCubicOut", leasingsEaseCubicOut ); + assingGlobalFunction( "EaseCubicInOut", leasingsEaseCubicInOut ); /* Quadratic Easing functions. */ - lua_register( L, "RL_EaseQuadIn", leasingsEaseQuadIn ); - lua_register( L, "RL_EaseQuadOut", leasingsEaseQuadOut ); - lua_register( L, "RL_EaseQuadInOut", leasingsEaseQuadInOut ); + assingGlobalFunction( "EaseQuadIn", leasingsEaseQuadIn ); + assingGlobalFunction( "EaseQuadOut", leasingsEaseQuadOut ); + assingGlobalFunction( "EaseQuadInOut", leasingsEaseQuadInOut ); /* Exponential Easing functions. */ - lua_register( L, "RL_EaseExpoIn", leasingsEaseExpoIn ); - lua_register( L, "RL_EaseExpoOut", leasingsEaseExpoOut ); - lua_register( L, "RL_EaseExpoInOut", leasingsEaseExpoInOut ); + assingGlobalFunction( "EaseExpoIn", leasingsEaseExpoIn ); + assingGlobalFunction( "EaseExpoOut", leasingsEaseExpoOut ); + assingGlobalFunction( "EaseExpoInOut", leasingsEaseExpoInOut ); /* Back Easing functions. */ - lua_register( L, "RL_EaseBackIn", leasingsEaseBackIn ); - lua_register( L, "RL_EaseBackOut", leasingsEaseBackOut ); - lua_register( L, "RL_EaseBackInOut", leasingsEaseBackInOut ); + assingGlobalFunction( "EaseBackIn", leasingsEaseBackIn ); + assingGlobalFunction( "EaseBackOut", leasingsEaseBackOut ); + assingGlobalFunction( "EaseBackInOut", leasingsEaseBackInOut ); /* Bounce Easing functions. */ - lua_register( L, "RL_EaseBounceIn", leasingsEaseBounceIn ); - lua_register( L, "RL_EaseBounceOut", leasingsEaseBounceOut ); - lua_register( L, "RL_EaseBounceInOut", leasingsEaseBounceInOut ); + assingGlobalFunction( "EaseBounceIn", leasingsEaseBounceIn ); + assingGlobalFunction( "EaseBounceOut", leasingsEaseBounceOut ); + assingGlobalFunction( "EaseBounceInOut", leasingsEaseBounceInOut ); /* Elastic Easing functions. */ - lua_register( L, "RL_EaseElasticIn", leasingsEaseElasticIn ); - lua_register( L, "RL_EaseElasticOut", leasingsEaseElasticOut ); - lua_register( L, "RL_EaseElasticInOut", leasingsEaseElasticInOut ); + assingGlobalFunction( "EaseElasticIn", leasingsEaseElasticIn ); + assingGlobalFunction( "EaseElasticOut", leasingsEaseElasticOut ); + assingGlobalFunction( "EaseElasticInOut", leasingsEaseElasticInOut ); + + lua_pop( L, -1 ); } /* Lua util functions. */ @@ -1716,7 +1746,7 @@ Ray uluaGetRay( lua_State *L ) { lua_pushnil( L ); while ( lua_next( L, t ) != 0 ) { - if ( lua_isnumber( L, -1 ) ) { + if ( lua_istable( L, -1 ) ) { if ( lua_isnumber( L, -2 ) ) { switch ( i ) { case 0: diff --git a/src/models.c b/src/models.c index 6258f81..cef36dd 100644 --- a/src/models.c +++ b/src/models.c @@ -125,7 +125,7 @@ static int newMesh() { */ /* -> success = RL_DrawLine3D( Vector3 startPos, Vector3 endPos, Color color ) +> success = RL.DrawLine3D( Vector3 startPos, Vector3 endPos, Color color ) Draw a line in 3D world space @@ -134,7 +134,7 @@ Draw a line in 3D world space */ int lmodelsDrawLine3D( 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_DrawLine3D( Vector3 startPos, Vector3 endPos, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawLine3D( Vector3 startPos, Vector3 endPos, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -151,7 +151,7 @@ int lmodelsDrawLine3D( lua_State *L ) { } /* -> success = RL_DrawPoint3D( Vector3 position, Color color ) +> success = RL.DrawPoint3D( Vector3 position, Color color ) Draw a point in 3D space, actually a small line @@ -160,7 +160,7 @@ Draw a point in 3D space, actually a small line */ int lmodelsDrawPoint3D( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawPoint3D( Vector3 position, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawPoint3D( Vector3 position, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -175,7 +175,7 @@ int lmodelsDrawPoint3D( lua_State *L ) { } /* -> success = RL_DrawCircle3D( Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color ) +> success = RL.DrawCircle3D( Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color ) Draw a circle in 3D world space @@ -184,7 +184,7 @@ Draw a circle in 3D world space */ int lmodelsDrawCircle3D( lua_State *L ) { if ( !lua_istable( L, -5 ) || !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_DrawCircle3D( Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCircle3D( Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -205,7 +205,7 @@ int lmodelsDrawCircle3D( lua_State *L ) { } /* -> success = RL_DrawTriangle3D( Vector3 v1, Vector3 v2, Vector3 v3, Color color ) +> success = RL.DrawTriangle3D( Vector3 v1, Vector3 v2, Vector3 v3, Color color ) Draw a color-filled triangle ( Vertex in counter-clockwise order! ) @@ -214,7 +214,7 @@ Draw a color-filled triangle ( Vertex in counter-clockwise order! ) */ int lmodelsDrawTriangle3D( 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_DrawTriangle3D( Vector3 v1, Vector3 v2, Vector3 v3, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTriangle3D( Vector3 v1, Vector3 v2, Vector3 v3, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -233,7 +233,7 @@ int lmodelsDrawTriangle3D( lua_State *L ) { } /* -> success = RL_DrawCube( Vector3 position, Vector3 size, Color color ) +> success = RL.DrawCube( Vector3 position, Vector3 size, Color color ) Draw cube @@ -242,7 +242,7 @@ Draw cube */ int lmodelsDrawCube( 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_DrawCube( Vector3 position, Vector3 size, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCube( Vector3 position, Vector3 size, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -259,7 +259,7 @@ int lmodelsDrawCube( lua_State *L ) { } /* -> success = RL_DrawCubeWires( Vector3 position, Vector3 size, Color color ) +> success = RL.DrawCubeWires( Vector3 position, Vector3 size, Color color ) Draw cube wires @@ -268,7 +268,7 @@ Draw cube wires */ int lmodelsDrawCubeWires( 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_DrawCubeWires( Vector3 position, Vector3 size, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCubeWires( Vector3 position, Vector3 size, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -285,7 +285,7 @@ int lmodelsDrawCubeWires( lua_State *L ) { } /* -> success = RL_DrawCubeTexture( Texture2D texture, Vector3 position, Vector3 size, Color color ) +> success = RL.DrawCubeTexture( Texture2D texture, Vector3 position, Vector3 size, Color color ) Draw cube textured @@ -294,7 +294,7 @@ Draw cube textured */ int lmodelsDrawCubeTexture( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawCubeTexture( Texture2D texture, Vector3 position, Vector3 size, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCubeTexture( Texture2D texture, Vector3 position, Vector3 size, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -318,7 +318,7 @@ int lmodelsDrawCubeTexture( lua_State *L ) { } /* -> success = RL_DrawSphere( Vector3 centerPos, float radius, Color color ) +> success = RL.DrawSphere( Vector3 centerPos, float radius, Color color ) Draw sphere @@ -327,7 +327,7 @@ Draw sphere */ int lmodelsDrawSphere( 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_DrawSphere( Vector3 centerPos, float radius, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawSphere( Vector3 centerPos, float radius, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -344,7 +344,7 @@ int lmodelsDrawSphere( lua_State *L ) { } /* -> success = RL_DrawSphereEx( Vector3 centerPos, float radius, int rings, int slices, Color color ) +> success = RL.DrawSphereEx( Vector3 centerPos, float radius, int rings, int slices, Color color ) Draw sphere with extended parameters @@ -353,7 +353,7 @@ Draw sphere with extended parameters */ int lmodelsDrawSphereEx( 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_DrawSphereEx( Vector3 centerPos, float radius, int rings, int slices, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawSphereEx( Vector3 centerPos, float radius, int rings, int slices, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -374,7 +374,7 @@ int lmodelsDrawSphereEx( lua_State *L ) { } /* -> success = RL_DrawSphereWires( Vector3 centerPos, float radius, int rings, int slices, Color color ) +> success = RL.DrawSphereWires( Vector3 centerPos, float radius, int rings, int slices, Color color ) Draw sphere wires @@ -383,7 +383,7 @@ Draw sphere wires */ int lmodelsDrawSphereWires( 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_DrawSphereWires( Vector3 centerPos, float radius, int rings, int slices, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawSphereWires( Vector3 centerPos, float radius, int rings, int slices, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -404,7 +404,7 @@ int lmodelsDrawSphereWires( lua_State *L ) { } /* -> success = RL_DrawCylinder( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color ) +> success = RL.DrawCylinder( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color ) Draw a cylinder/cone @@ -413,7 +413,7 @@ Draw a cylinder/cone */ int lmodelsDrawCylinder( 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_DrawCylinder( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCylinder( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -436,7 +436,7 @@ int lmodelsDrawCylinder( lua_State *L ) { } /* -> success = RL_DrawCylinderEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color ) +> success = RL.DrawCylinderEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color ) Draw a cylinder with base at startPos and top at endPos @@ -445,7 +445,7 @@ Draw a cylinder with base at startPos and top at endPos */ int lmodelsDrawCylinderEx( lua_State *L ) { if ( !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_DrawCylinderEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCylinderEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -468,7 +468,7 @@ int lmodelsDrawCylinderEx( lua_State *L ) { } /* -> success = RL_DrawCylinderWires( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color ) +> success = RL.DrawCylinderWires( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color ) Draw a cylinder/cone wires @@ -477,7 +477,7 @@ Draw a cylinder/cone wires */ int lmodelsDrawCylinderWires( 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_DrawCylinderWires( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCylinderWires( Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -500,7 +500,7 @@ int lmodelsDrawCylinderWires( lua_State *L ) { } /* -> success = RL_DrawCylinderWiresEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color ) +> success = RL.DrawCylinderWiresEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color ) Draw a cylinder wires with base at startPos and top at endPos @@ -509,7 +509,7 @@ Draw a cylinder wires with base at startPos and top at endPos */ int lmodelsDrawCylinderWiresEx( lua_State *L ) { if ( !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_DrawCylinderWiresEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawCylinderWiresEx( Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -532,7 +532,7 @@ int lmodelsDrawCylinderWiresEx( lua_State *L ) { } /* -> success = RL_DrawPlane( Vector3 centerPos, Vector2 size, Color color ) +> success = RL.DrawPlane( Vector3 centerPos, Vector2 size, Color color ) Draw a plane XZ @@ -541,7 +541,7 @@ Draw a plane XZ */ int lmodelsDrawPlane( 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_DrawPlane( Vector3 centerPos, Vector2 size, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawPlane( Vector3 centerPos, Vector2 size, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -558,7 +558,7 @@ int lmodelsDrawPlane( lua_State *L ) { } /* -> success = RL_DrawQuad3DTexture( texture, Vector3{} vertices, Vector2{} texCoords, Color{} colors ) +> success = RL.DrawQuad3DTexture( Texture2D texture, Vector3{} vertices, Vector2{} texCoords, Color{} colors ) Draw 3D textured quad. ( Texture coordinates opengl style 0.0 - 1.0 ). @@ -567,7 +567,7 @@ Draw 3D textured quad. ( Texture coordinates opengl style 0.0 - 1.0 ). */ int lmodelDrawQuad3DTexture( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawQuad3DTexture( texture, Vector3{} vertices, Vector2{} texCoords, Color{} colors )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawQuad3DTexture( Texture2D texture, Vector3{} vertices, Vector2{} texCoords, Color{} colors )" ); lua_pushboolean( L, false ); return 1; } @@ -647,7 +647,7 @@ int lmodelDrawQuad3DTexture( lua_State *L ) { } /* -> success = RL_DrawRay( Ray ray, Color color ) +> success = RL.DrawRay( Ray ray, Color color ) Draw a ray line @@ -656,7 +656,7 @@ Draw a ray line */ int lmodelsDrawRay( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRay( Ray ray, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawRay( Ray ray, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -671,7 +671,7 @@ int lmodelsDrawRay( lua_State *L ) { } /* -> success = RL_DrawGrid( int slices, float spacing ) +> success = RL.DrawGrid( int slices, float spacing ) Draw a grid ( Centered at ( 0, 0, 0 ) ) @@ -680,7 +680,7 @@ Draw a grid ( Centered at ( 0, 0, 0 ) ) */ int lmodelsDrawGrid( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawGrid( int slices, float spacing )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawGrid( int slices, float spacing )" ); lua_pushboolean( L, false ); return 1; } @@ -695,7 +695,7 @@ int lmodelsDrawGrid( lua_State *L ) { */ /* -> mesh = RL_GenMeshPoly( int sides, float radius ) +> mesh = RL.GenMeshPoly( int sides, float radius ) Generate polygonal mesh @@ -704,7 +704,7 @@ Generate polygonal mesh */ int lmodelsGenMeshPoly( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenMeshPoly( int sides, float radius )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshPoly( int sides, float radius )" ); lua_pushinteger( L, -1 ); return 1; } @@ -720,7 +720,7 @@ int lmodelsGenMeshPoly( lua_State *L ) { } /* -> mesh = RL_GenMeshPlane( float width, float length, int resX, int resZ ) +> mesh = RL.GenMeshPlane( float width, float length, int resX, int resZ ) Generate plane mesh ( With subdivisions ) @@ -729,7 +729,7 @@ Generate plane mesh ( With subdivisions ) */ int lmodelsGenMeshPlane( 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_GenMeshPlane( float width, float length, int resX, int resZ )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshPlane( float width, float length, int resX, int resZ )" ); lua_pushinteger( L, -1 ); return 1; } @@ -747,7 +747,7 @@ int lmodelsGenMeshPlane( lua_State *L ) { } /* -> mesh = RL_GenMeshCube( Vector3 size ) +> mesh = RL.GenMeshCube( Vector3 size ) Generate cuboid mesh @@ -756,7 +756,7 @@ Generate cuboid mesh */ int lmodelsGenMeshCube( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenMeshCube( Vector3 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshCube( Vector3 size )" ); lua_pushinteger( L, -1 ); return 1; } @@ -771,7 +771,7 @@ int lmodelsGenMeshCube( lua_State *L ) { } /* -> mesh = RL_GenMeshSphere( float radius, int rings, int slices ) +> mesh = RL.GenMeshSphere( float radius, int rings, int slices ) Generate sphere mesh ( Standard sphere ) @@ -780,7 +780,7 @@ Generate sphere mesh ( Standard sphere ) */ int lmodelsGenMeshSphere( 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_GenMeshSphere( float radius, int rings, int slices )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshSphere( float radius, int rings, int slices )" ); lua_pushinteger( L, -1 ); return 1; } @@ -797,7 +797,7 @@ int lmodelsGenMeshSphere( lua_State *L ) { } /* -> mesh = RL_GenMeshCylinder( float radius, float height, int slices ) +> mesh = RL.GenMeshCylinder( float radius, float height, int slices ) Generate cylinder mesh @@ -806,7 +806,7 @@ Generate cylinder mesh */ int lmodelsGenMeshCylinder( 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_GenMeshCylinder( float radius, float height, int slices )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshCylinder( float radius, float height, int slices )" ); lua_pushinteger( L, -1 ); return 1; } @@ -823,7 +823,7 @@ int lmodelsGenMeshCylinder( lua_State *L ) { } /* -> mesh = RL_GenMeshCone( float radius, float height, int slices ) +> mesh = RL.GenMeshCone( float radius, float height, int slices ) Generate cone/pyramid mesh @@ -832,7 +832,7 @@ Generate cone/pyramid mesh */ int lmodelsGenMeshCone( 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_GenMeshCone( float radius, float height, int slices )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshCone( float radius, float height, int slices )" ); lua_pushinteger( L, -1 ); return 1; } @@ -849,7 +849,7 @@ int lmodelsGenMeshCone( lua_State *L ) { } /* -> mesh = RL_GenMeshTorus( float radius, float size, int radSeg, int sides ) +> mesh = RL.GenMeshTorus( float radius, float size, int radSeg, int sides ) Generate torus mesh @@ -858,7 +858,7 @@ Generate torus mesh */ int lmodelsGenMeshTorus( 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_GenMeshTorus( float radius, float size, int radSeg, int sides )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshTorus( float radius, float size, int radSeg, int sides )" ); lua_pushinteger( L, -1 ); return 1; } @@ -876,7 +876,7 @@ int lmodelsGenMeshTorus( lua_State *L ) { } /* -> mesh = RL_GenMeshKnot( float radius, float size, int radSeg, int sides ) +> mesh = RL.GenMeshKnot( float radius, float size, int radSeg, int sides ) Generate torus mesh @@ -885,7 +885,7 @@ Generate torus mesh */ int lmodelsGenMeshKnot( 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_GenMeshKnot( float radius, float size, int radSeg, int sides )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshKnot( float radius, float size, int radSeg, int sides )" ); lua_pushinteger( L, -1 ); return 1; } @@ -903,7 +903,7 @@ int lmodelsGenMeshKnot( lua_State *L ) { } /* -> mesh = RL_GenMeshHeightmap( Image heightmap, Vector3 size ) +> mesh = RL.GenMeshHeightmap( Image heightmap, Vector3 size ) Generate heightmap mesh from image data @@ -912,7 +912,7 @@ Generate heightmap mesh from image data */ int lmodelsGenMeshHeightmap( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenMeshHeightmap( Image heightmap, Vector3 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshHeightmap( Image heightmap, Vector3 size )" ); lua_pushinteger( L, -1 ); return 1; } @@ -935,7 +935,7 @@ int lmodelsGenMeshHeightmap( lua_State *L ) { } /* -> mesh = RL_GenMeshCustom( Mesh{}, bool dynamic ) +> mesh = RL.GenMeshCustom( Mesh{} mesh, bool dynamic ) Generate custom mesh from vertex attribute data and uploads it into a VAO ( if supported ) and VBO @@ -944,7 +944,7 @@ Generate custom mesh from vertex attribute data and uploads it into a VAO ( if s */ int lmodelsGenMeshCustom( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isboolean( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenMeshCustom( Mesh{}, bool dynamic )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshCustom( Mesh{} mesh, bool dynamic )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1102,7 +1102,7 @@ int lmodelsGenMeshCustom( lua_State *L ) { } /* -> success = RL_UpdateMesh( Mesh{} ) +> success = RL.UpdateMesh( Mesh{} mesh ) Update mesh vertex data in GPU. Note! Mainly intented to be used with custom meshes. @@ -1112,7 +1112,7 @@ Note! Mainly intented to be used with custom meshes. */ int lmodelsUpdateMesh( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UpdateMesh( Mesh{} )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateMesh( Mesh{} mesh )" ); lua_pushboolean( L, false ); return 1; } @@ -1241,7 +1241,7 @@ int lmodelsUpdateMesh( lua_State *L ) { } /* -> success = RL_UnloadMesh( Mesh mesh ) +> success = RL.UnloadMesh( Mesh mesh ) Unload mesh data from CPU and GPU @@ -1250,7 +1250,7 @@ Unload mesh data from CPU and GPU */ int lmodelsUnloadMesh( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadMesh( Mesh mesh )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadMesh( Mesh mesh )" ); lua_pushboolean( L, false ); return 1; } @@ -1268,7 +1268,7 @@ int lmodelsUnloadMesh( lua_State *L ) { } /* -> success = RL_DrawMesh( Mesh mesh, Material material, Matrix transform ) +> success = RL.DrawMesh( Mesh mesh, Material material, Matrix transform ) Draw a 3d mesh with material and transform @@ -1277,7 +1277,7 @@ Draw a 3d mesh with material and transform */ int lmodelsDrawMesh( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawMesh( Mesh mesh, Material material, Matrix transform )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawMesh( Mesh mesh, Material material, Matrix transform )" ); lua_pushboolean( L, false ); return 1; } @@ -1299,7 +1299,7 @@ int lmodelsDrawMesh( lua_State *L ) { } /* -> success = RL_DrawMeshInstanced( Mesh mesh, Material material, Matrix{} transforms, int instances ) +> success = RL.DrawMeshInstanced( Mesh mesh, Material material, Matrix{} transforms, int instances ) Draw multiple mesh instances with material and different transforms @@ -1308,7 +1308,7 @@ Draw multiple mesh instances with material and different transforms */ int lmodelsDrawMeshInstanced( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawMeshInstanced( Mesh mesh, Material material, Matrix{} transforms, int instances )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawMeshInstanced( Mesh mesh, Material material, Matrix{} transforms, int instances )" ); lua_pushboolean( L, false ); return 1; } @@ -1342,7 +1342,7 @@ int lmodelsDrawMeshInstanced( lua_State *L ) { } /* -> success = RL_SetMeshColor( Mesh mesh, Color color ) +> success = RL.SetMeshColor( Mesh mesh, Color color ) Updades mesh color vertex attribute buffer NOTE: Currently only works on custom mesh @@ -1352,7 +1352,7 @@ NOTE: Currently only works on custom mesh */ int lmodelsSetMeshColor( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMeshColor( Mesh mesh, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMeshColor( Mesh mesh, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1388,7 +1388,7 @@ int lmodelsSetMeshColor( lua_State *L ) { } /* -> success = RL_ExportMesh( Mesh mesh, string fileName ) +> success = RL.ExportMesh( Mesh mesh, string fileName ) Export mesh data to file, returns true on success @@ -1397,7 +1397,7 @@ Export mesh data to file, returns true on success */ int lmodelsExportMesh( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ExportMesh( Mesh mesh, string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ExportMesh( Mesh mesh, string fileName )" ); lua_pushboolean( L, false ); return 1; } @@ -1413,7 +1413,7 @@ int lmodelsExportMesh( lua_State *L ) { } /* -> boundingBox = RL_GetMeshBoundingBox( Mesh mesh ) +> boundingBox = RL.GetMeshBoundingBox( Mesh mesh ) Compute mesh bounding box limits @@ -1422,7 +1422,7 @@ Compute mesh bounding box limits */ int lmodelsGetMeshBoundingBox( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetMeshBoundingBox( Mesh mesh )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetMeshBoundingBox( Mesh mesh )" ); lua_pushboolean( L, false ); return 1; } @@ -1438,7 +1438,7 @@ int lmodelsGetMeshBoundingBox( lua_State *L ) { } /* -> success = RL_GenMeshTangents( Mesh mesh ) +> success = RL.GenMeshTangents( Mesh mesh ) Compute mesh tangents @@ -1447,7 +1447,7 @@ Compute mesh tangents */ int lmodelsGenMeshTangents( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenMeshTangents( Mesh mesh )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenMeshTangents( Mesh mesh )" ); lua_pushboolean( L, false ); return 1; } @@ -1468,7 +1468,7 @@ int lmodelsGenMeshTangents( lua_State *L ) { */ /* -> material = RL_LoadMaterialDefault() +> material = RL.LoadMaterialDefault() Load default material @@ -1491,7 +1491,7 @@ int lmodelsLoadMaterialDefault( lua_State *L ) { } /* -> material = RL_CreateMaterial( material{} ) +> material = RL.CreateMaterial( Material{} material ) Load material from table. See material table definition @@ -1500,7 +1500,7 @@ Load material from table. See material table definition */ int lmodelsCreateMaterial( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CreateMaterial( material{} )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CreateMaterial( Material{} material )" ); lua_pushboolean( L, false ); return 1; } @@ -1592,7 +1592,7 @@ int lmodelsCreateMaterial( lua_State *L ) { } /* -> success = RL_UnloadMaterial( Material material ) +> success = RL.UnloadMaterial( Material material ) Unload material from GPU memory ( VRAM ) @@ -1601,7 +1601,7 @@ Unload material from GPU memory ( VRAM ) */ int lmodelsUnloadMaterial( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadMaterial( Material material )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadMaterial( Material material )" ); lua_pushboolean( L, false ); return 1; } @@ -1619,7 +1619,7 @@ int lmodelsUnloadMaterial( lua_State *L ) { } /* -> success = RL_SetMaterialTexture( Material material, int mapType, Texture2D texture ) +> success = RL.SetMaterialTexture( Material material, int mapType, Texture2D texture ) Set texture for a material map type ( MATERIAL_MAP_ALBEDO, MATERIAL_MAP_METALNESS... ) @@ -1628,7 +1628,7 @@ Set texture for a material map type ( MATERIAL_MAP_ALBEDO, MATERIAL_MAP_METALNES */ int lmodelsSetMaterialTexture( 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_SetMaterialTexture( Material material, int mapType, Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMaterialTexture( Material material, int mapType, Texture2D texture )" ); lua_pushboolean( L, false ); return 1; } @@ -1647,7 +1647,7 @@ int lmodelsSetMaterialTexture( lua_State *L ) { } /* -> success = RL_SetMaterialColor( Material material, int mapType, Color color ) +> success = RL.SetMaterialColor( Material material, int mapType, Color color ) Set color for a material map type @@ -1656,7 +1656,7 @@ Set color for a material map type */ int lmodelsSetMaterialColor( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMaterialColor( Material material, int mapType, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMaterialColor( Material material, int mapType, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1678,7 +1678,7 @@ int lmodelsSetMaterialColor( lua_State *L ) { } /* -> success = RL_SetMaterialValue( Material material, int mapType, float value ) +> success = RL.SetMaterialValue( Material material, int mapType, float value ) Set value for a material map type @@ -1687,7 +1687,7 @@ Set value for a material map type */ int lmodelsSetMaterialValue( 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_SetMaterialValue( Material material, int mapType, float value )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMaterialValue( Material material, int mapType, float value )" ); lua_pushboolean( L, false ); return 1; } @@ -1709,7 +1709,7 @@ int lmodelsSetMaterialValue( lua_State *L ) { } /* -> success = RL_SetMaterialShader( Material material, Shader shader ) +> success = RL.SetMaterialShader( Material material, Shader shader ) Set shader for material @@ -1718,7 +1718,7 @@ Set shader for material */ int lmodelsSetMaterialShader( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetMaterialShader( Material material, Shader shader )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetMaterialShader( Material material, Shader shader )" ); lua_pushboolean( L, false ); return 1; } @@ -1742,7 +1742,7 @@ int lmodelsSetMaterialShader( lua_State *L ) { */ /* -> model = RL_LoadModel( string fileName ) +> model = RL.LoadModel( string fileName ) Load model from files ( Meshes and materials ) @@ -1751,7 +1751,7 @@ Load model from files ( Meshes and materials ) */ int lmodelsLoadModel( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadModel( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadModel( string fileName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1771,7 +1771,7 @@ int lmodelsLoadModel( lua_State *L ) { } /* -> model = RL_LoadModelFromMesh( Mesh mesh ) +> model = RL.LoadModelFromMesh( Mesh mesh ) Load model from generated mesh ( Default material ) @@ -1780,7 +1780,7 @@ Load model from generated mesh ( Default material ) */ int lmodelsLoadModelFromMesh( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadModelFromMesh( Mesh mesh )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadModelFromMesh( Mesh mesh )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1806,7 +1806,7 @@ int lmodelsLoadModelFromMesh( lua_State *L ) { } /* -> success = RL_UnloadModel( Model model ) +> success = RL.UnloadModel( Model model ) Unload model ( Including meshes ) from memory ( RAM and/or VRAM ) @@ -1815,7 +1815,7 @@ Unload model ( Including meshes ) from memory ( RAM and/or VRAM ) */ int lmodelsUnloadModel( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadModel( Model model )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadModel( Model model )" ); lua_pushboolean( L, false ); return 1; } @@ -1833,7 +1833,7 @@ int lmodelsUnloadModel( lua_State *L ) { } /* -> success = RL_DrawModel( Model model, Vector3 position, float scale, Color tint ) +> success = RL.DrawModel( Model model, Vector3 position, float scale, Color tint ) Draw a model ( With texture if set ) @@ -1842,7 +1842,7 @@ Draw a model ( With texture if set ) */ int lmodelsDrawModel( 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_DrawModel( Model model, Vector3 position, float scale, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawModel( Model model, Vector3 position, float scale, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -1866,7 +1866,7 @@ int lmodelsDrawModel( lua_State *L ) { } /* -> success = RL_DrawModelEx( Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint ) +> success = RL.DrawModelEx( Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint ) Draw a model with extended parameters @@ -1876,7 +1876,7 @@ Draw a model with extended parameters int lmodelsDrawModelEx( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_istable( L, -5 ) || !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_DrawModelEx( Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawModelEx( Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -1904,7 +1904,7 @@ int lmodelsDrawModelEx( lua_State *L ) { } /* -> success = RL_SetModelMaterial( Model model, Material modelMaterial, Material material ) +> success = RL.SetModelMaterial( Model model, Material modelMaterial, Material material ) Copies material to model material. ( Model material is the material id in models. Material can be deleted if not used elsewhere ) @@ -1913,7 +1913,7 @@ Copies material to model material. ( Model material is the material id in models */ int lmodelsSetModelMaterial( 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_SetModelMaterial( Model model, Material modelMaterial, Material material )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetModelMaterial( Model model, Material modelMaterial, Material material )" ); lua_pushboolean( L, false ); return 1; } @@ -1952,7 +1952,7 @@ int lmodelsSetModelMaterial( lua_State *L ) { } /* -> success = RL_SetModelMeshMaterial( Model model, int meshId, int materialId ) +> success = RL.SetModelMeshMaterial( Model model, int meshId, int materialId ) Set material for a mesh ( Mesh and material on this model ) @@ -1961,7 +1961,7 @@ Set material for a mesh ( Mesh and material on this model ) */ int lmodelsSetModelMeshMaterial( 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_SetModelMeshMaterial( Model model, int meshId, int materialId )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetModelMeshMaterial( Model model, int meshId, int materialId )" ); lua_pushboolean( L, false ); return 1; } @@ -1981,7 +1981,7 @@ int lmodelsSetModelMeshMaterial( lua_State *L ) { } /* -> success = RL_DrawBillboard( Camera camera, Texture2D texture, Vector3 position, float size, Color tint ) +> success = RL.DrawBillboard( Camera camera, Texture2D texture, Vector3 position, float size, Color tint ) Draw a billboard texture @@ -1991,7 +1991,7 @@ Draw a billboard texture int lmodelsDrawBillboard( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !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_DrawBillboard( Camera camera, Texture2D texture, Vector3 position, float size, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawBillboard( Camera camera, Texture2D texture, Vector3 position, float size, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2016,7 +2016,7 @@ int lmodelsDrawBillboard( lua_State *L ) { } /* -> success = RL_DrawBillboardRec( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint ) +> success = RL.DrawBillboardRec( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint ) Draw a billboard texture defined by source @@ -2026,7 +2026,7 @@ Draw a billboard texture defined by source int lmodelsDrawBillboardRec( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_isnumber( 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_DrawBillboardRec( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawBillboardRec( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2053,7 +2053,7 @@ int lmodelsDrawBillboardRec( lua_State *L ) { } /* -> success = RL_SetModelTransform( Model model, Matrix transform ) +> success = RL.SetModelTransform( Model model, Matrix transform ) Set model transform matrix @@ -2062,7 +2062,7 @@ Set model transform matrix */ int lmodelsSetModelTransform( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetModelTransform( Model model, Matrix transform )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetModelTransform( Model model, Matrix transform )" ); lua_pushboolean( L, false ); return 1; } @@ -2081,7 +2081,7 @@ int lmodelsSetModelTransform( lua_State *L ) { } /* -> transform = RL_GetModelTransform( Model model ) +> transform = RL.GetModelTransform( Model model ) Get model transform matrix @@ -2090,7 +2090,7 @@ Get model transform matrix */ int lmodelsGetModelTransform( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetModelTransform( Model model )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetModelTransform( Model model )" ); lua_pushboolean( L, false ); return 1; } @@ -2110,7 +2110,7 @@ int lmodelsGetModelTransform( lua_State *L ) { */ /* -> animations, animationCount = RL_LoadModelAnimations( string fileName ) +> animations, animationCount = RL.LoadModelAnimations( string fileName ) Load model animations from file @@ -2119,7 +2119,7 @@ Load model animations from file */ int lmodelsLoadModelAnimations( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadModelAnimations( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadModelAnimations( string fileName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -2141,7 +2141,7 @@ int lmodelsLoadModelAnimations( lua_State *L ) { } /* -> success = RL_UpdateModelAnimation( Model model, ModelAnimations animations, int animation, int frame ) +> success = RL.UpdateModelAnimation( Model model, ModelAnimations animations, int animation, int frame ) Update model animation pose @@ -2150,7 +2150,7 @@ Update model animation pose */ int lmodelsUpdateModelAnimation( 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_UpdateModelAnimation( Model model, ModelAnimations animations, int animation, int frame )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateModelAnimation( Model model, ModelAnimations animations, int animation, int frame )" ); lua_pushboolean( L, false ); return 1; } @@ -2169,7 +2169,7 @@ int lmodelsUpdateModelAnimation( lua_State *L ) { } /* -> success = RL_UnloadModelAnimations( ModelAnimations animations ) +> success = RL.UnloadModelAnimations( ModelAnimations animations ) Unload animation data @@ -2178,7 +2178,7 @@ Unload animation data */ int lmodelsUnloadModelAnimations( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadModelAnimations( ModelAnimations animations )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadModelAnimations( ModelAnimations animations )" ); lua_pushboolean( L, false ); return 1; } @@ -2198,7 +2198,7 @@ int lmodelsUnloadModelAnimations( lua_State *L ) { } /* -> valid = RL_IsModelAnimationValid( Model model, ModelAnimations animations ) +> valid = RL.IsModelAnimationValid( Model model, ModelAnimations animations ) Check model animation skeleton match @@ -2207,7 +2207,7 @@ Check model animation skeleton match */ int lmodelsIsModelAnimationValid( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_IsModelAnimationValid( Model model, ModelAnimations animations )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.IsModelAnimationValid( Model model, ModelAnimations animations )" ); lua_pushnil( L ); return 1; } @@ -2224,7 +2224,7 @@ int lmodelsIsModelAnimationValid( lua_State *L ) { } /* -> boneCount = RL_GetModelAnimationBoneCount( ModelAnimations animations, int animation ) +> boneCount = RL.GetModelAnimationBoneCount( ModelAnimations animations, int animation ) Return modelAnimation bone count @@ -2233,7 +2233,7 @@ Return modelAnimation bone count */ int lmodelsGetModelAnimationBoneCount( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetModelAnimationBoneCount( ModelAnimations animations, int animation )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetModelAnimationBoneCount( ModelAnimations animations, int animation )" ); lua_pushboolean( L, false ); return 1; } @@ -2249,7 +2249,7 @@ int lmodelsGetModelAnimationBoneCount( lua_State *L ) { } /* -> frameCount = RL_GetModelAnimationFrameCount( ModelAnimations animations, int animation ) +> frameCount = RL.GetModelAnimationFrameCount( ModelAnimations animations, int animation ) Return modelAnimation frame count @@ -2258,7 +2258,7 @@ Return modelAnimation frame count */ int lmodelsGetModelAnimationFrameCount( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetModelAnimationFrameCount( ModelAnimations animations, int animation )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetModelAnimationFrameCount( ModelAnimations animations, int animation )" ); lua_pushboolean( L, false ); return 1; } @@ -2278,7 +2278,7 @@ int lmodelsGetModelAnimationFrameCount( lua_State *L ) { */ /* -> collision = RL_CheckCollisionSpheres( Vector3 center1, float radius1, Vector3 center2, float radius2 ) +> collision = RL.CheckCollisionSpheres( Vector3 center1, float radius1, Vector3 center2, float radius2 ) Check collision between two spheres @@ -2287,7 +2287,7 @@ Check collision between two spheres */ int lmodelsCheckCollisionSpheres( 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_CheckCollisionSpheres( Vector3 center1, float radius1, Vector3 center2, float radius2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionSpheres( Vector3 center1, float radius1, Vector3 center2, float radius2 )" ); lua_pushnil( L ); return 1; } @@ -2305,7 +2305,7 @@ int lmodelsCheckCollisionSpheres( lua_State *L ) { } /* -> collision = RL_CheckCollisionBoxes( BoundingBox box1, BoundingBox box2 ) +> collision = RL.CheckCollisionBoxes( BoundingBox box1, BoundingBox box2 ) Check collision between two bounding boxes @@ -2314,7 +2314,7 @@ Check collision between two bounding boxes */ int lmodelsCheckCollisionBoxes( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CheckCollisionBoxes( BoundingBox box1, BoundingBox box2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionBoxes( BoundingBox box1, BoundingBox box2 )" ); lua_pushnil( L ); return 1; } @@ -2328,7 +2328,7 @@ int lmodelsCheckCollisionBoxes( lua_State *L ) { } /* -> collision = RL_CheckCollisionBoxSphere( BoundingBox box, Vector3 center, float radius ) +> collision = RL.CheckCollisionBoxSphere( BoundingBox box, Vector3 center, float radius ) Check collision between box and sphere @@ -2337,7 +2337,7 @@ Check collision between box and sphere */ int lmodelsCheckCollisionBoxSphere( 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_CheckCollisionBoxSphere( BoundingBox box, Vector3 center, float radius )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CheckCollisionBoxSphere( BoundingBox box, Vector3 center, float radius )" ); lua_pushnil( L ); return 1; } @@ -2353,7 +2353,7 @@ int lmodelsCheckCollisionBoxSphere( lua_State *L ) { } /* -> rayCollision = RL_GetRayCollisionSphere( Ray ray, Vector3 center, float radius ) +> rayCollision = RL.GetRayCollisionSphere( Ray ray, Vector3 center, float radius ) Get collision info between ray and sphere. ( RayCollision is Lua table of { hit, distance, point, normal } ) @@ -2362,7 +2362,7 @@ Get collision info between ray and sphere. ( RayCollision is Lua table of { hit, */ int lmodelsGetRayCollisionSphere( 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_GetRayCollisionSphere( Ray ray, Vector3 center, float radius )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetRayCollisionSphere( Ray ray, Vector3 center, float radius )" ); lua_pushnil( L ); return 1; } @@ -2378,7 +2378,7 @@ int lmodelsGetRayCollisionSphere( lua_State *L ) { } /* -> rayCollision = RL_GetRayCollisionBox( Ray ray, BoundingBox box ) +> rayCollision = RL.GetRayCollisionBox( Ray ray, BoundingBox box ) Get collision info between ray and box @@ -2387,7 +2387,7 @@ Get collision info between ray and box */ int lmodelsGetRayCollisionBox( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetRayCollisionBox( Ray ray, BoundingBox box )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetRayCollisionBox( Ray ray, BoundingBox box )" ); lua_pushnil( L ); return 1; } @@ -2401,7 +2401,7 @@ int lmodelsGetRayCollisionBox( lua_State *L ) { } /* -> rayCollision = RL_GetRayCollisionMesh( Ray ray, Mesh mesh, Matrix transform ) +> rayCollision = RL.GetRayCollisionMesh( Ray ray, Mesh mesh, Matrix transform ) Get collision info between ray and mesh @@ -2410,10 +2410,11 @@ Get collision info between ray and mesh */ int lmodelsGetRayCollisionMesh( 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_GetRayCollisionMesh( Ray ray, Mesh mesh, Matrix transform )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetRayCollisionMesh( Ray ray, Mesh mesh, Matrix transform )" ); lua_pushnil( L ); return 1; } + // Matrix transform = MatrixIdentity(); Matrix transform = uluaGetMatrix( L ); lua_pop( L, 1 ); size_t meshId = lua_tointeger( L, -1 ); @@ -2424,13 +2425,13 @@ int lmodelsGetRayCollisionMesh( lua_State *L ) { lua_pushnil( L ); return 1; } - uluaPushRayCollision( L, GetRayCollisionMesh( ray, *state->meshes[ meshId ], transform ) ); + // uluaPushRayCollision( L, GetRayCollisionMesh( ray, *state->meshes[ meshId ], transform ) ); return 1; } /* -> rayCollision = RL_GetRayCollisionTriangle( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3 ) +> rayCollision = RL.GetRayCollisionTriangle( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3 ) Get collision info between ray and triangle @@ -2439,7 +2440,7 @@ Get collision info between ray and triangle */ int lmodelsGetRayCollisionTriangle( 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_GetRayCollisionTriangle( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetRayCollisionTriangle( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3 )" ); lua_pushnil( L ); return 1; } @@ -2457,7 +2458,7 @@ int lmodelsGetRayCollisionTriangle( lua_State *L ) { } /* -> rayCollision = RL_GetRayCollisionQuad( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 ) +> rayCollision = RL.GetRayCollisionQuad( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 ) Get collision info between ray and quad @@ -2467,7 +2468,7 @@ Get collision info between ray and quad int lmodelsGetRayCollisionQuad( 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_GetRayCollisionQuad( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetRayCollisionQuad( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4 )" ); lua_pushnil( L ); return 1; } diff --git a/src/rgui.c b/src/rgui.c index 9b8502d..ee55067 100644 --- a/src/rgui.c +++ b/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; } diff --git a/src/rlgl.c b/src/rlgl.c index 0ca3383..c025c01 100644 --- a/src/rlgl.c +++ b/src/rlgl.c @@ -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 diff --git a/src/rmath.c b/src/rmath.c index a83eac4..26054e4 100644 --- a/src/rmath.c +++ b/src/rmath.c @@ -16,7 +16,7 @@ inline int imax( int a, int b ) { */ /* -> result = RL_Clamp( float value, float min, float max ) +> result = RL.Clamp( float value, float min, float max ) Clamp float value @@ -25,7 +25,7 @@ Clamp float value */ int lmathClamp( 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_Clamp( float value, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Clamp( float value, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -39,7 +39,7 @@ int lmathClamp( lua_State *L ) { } /* -> result = RL_Lerp( float start, float end, float amount ) +> result = RL.Lerp( float start, float end, float amount ) Calculate linear interpolation between two floats @@ -48,7 +48,7 @@ Calculate linear interpolation between two floats */ int lmathLerp( 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_Lerp( float start, float end, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Lerp( float start, float end, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -62,7 +62,7 @@ int lmathLerp( lua_State *L ) { } /* -> result = RL_Normalize( float value, float start, float end ) +> result = RL.Normalize( float value, float start, float end ) Normalize input value within input range @@ -71,7 +71,7 @@ Normalize input value within input range */ int lmathNormalize( 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_Normalize( float value, float start, float end )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Normalize( float value, float start, float end )" ); lua_pushboolean( L, false ); return 1; } @@ -85,7 +85,7 @@ int lmathNormalize( lua_State *L ) { } /* -> result = RL_Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd ) +> result = RL.Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd ) Remap input value within input range to output range @@ -95,7 +95,7 @@ Remap input value within input range to output range int lmathRemap( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !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_Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd )" ); lua_pushboolean( L, false ); return 1; } @@ -111,7 +111,7 @@ int lmathRemap( lua_State *L ) { } /* -> result = RL_Wrap( float value, float min, float max ) +> result = RL.Wrap( float value, float min, float max ) Wrap input value from min to max @@ -120,7 +120,7 @@ Wrap input value from min to max */ int lmathWrap( 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_Wrap( float value, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Wrap( float value, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -134,7 +134,7 @@ int lmathWrap( lua_State *L ) { } /* -> result = RL_FloatEquals( float x, float y ) +> result = RL.FloatEquals( float x, float y ) Check whether two given floats are almost equal @@ -143,7 +143,7 @@ Check whether two given floats are almost equal */ int lmathFloatEquals( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_FloatEquals( float x, float y )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.FloatEquals( float x, float y )" ); lua_pushboolean( L, false ); return 1; } @@ -160,7 +160,7 @@ int lmathFloatEquals( lua_State *L ) { */ /* -> result = RL_Vector2Zero() +> result = RL.Vector2Zero() Vector with components value 0.0f @@ -173,7 +173,7 @@ int lmathVector2Zero( lua_State *L ) { } /* -> result = RL_Vector2One() +> result = RL.Vector2One() Vector with components value 1.0f @@ -186,7 +186,7 @@ int lmathVector2One( lua_State *L ) { } /* -> result = RL_Vector2Add( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Add( Vector2 v1, Vector2 v2 ) Add two vectors (v1 + v2) @@ -195,7 +195,7 @@ Add two vectors (v1 + v2) */ int lmathVector2Add( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Add( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Add( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -209,7 +209,7 @@ int lmathVector2Add( lua_State *L ) { } /* -> result = RL_Vector2AddValue( Vector2 v, float add ) +> result = RL.Vector2AddValue( Vector2 v, float add ) Add vector and float value @@ -218,7 +218,7 @@ Add vector and float value */ int lmathVector2AddValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2AddValue( Vector2 v, float add )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2AddValue( Vector2 v, float add )" ); lua_pushboolean( L, false ); return 1; } @@ -232,7 +232,7 @@ int lmathVector2AddValue( lua_State *L ) { } /* -> result = RL_Vector2Subtract( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Subtract( Vector2 v1, Vector2 v2 ) Subtract two vectors (v1 - v2) @@ -241,7 +241,7 @@ Subtract two vectors (v1 - v2) */ int lmathVector2Subtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Subtract( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Subtract( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -255,7 +255,7 @@ int lmathVector2Subtract( lua_State *L ) { } /* -> result = RL_Vector2SubtractValue( Vector2 v, float sub ) +> result = RL.Vector2SubtractValue( Vector2 v, float sub ) Subtract vector by float value @@ -264,7 +264,7 @@ Subtract vector by float value */ int lmathVector2SubtractValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2SubtractValue( Vector2 v, float sub )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2SubtractValue( Vector2 v, float sub )" ); lua_pushboolean( L, false ); return 1; } @@ -278,7 +278,7 @@ int lmathVector2SubtractValue( lua_State *L ) { } /* -> result = RL_Vector2Length( vector2 v ) +> result = RL.Vector2Length( vector2 v ) Calculate vector length @@ -287,7 +287,7 @@ Calculate vector length */ int lmathVector2Length( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Length( vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Length( vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -299,7 +299,7 @@ int lmathVector2Length( lua_State *L ) { } /* -> result = RL_Vector2LengthSqr( vector2 v ) +> result = RL.Vector2LengthSqr( vector2 v ) Calculate vector square length @@ -308,7 +308,7 @@ Calculate vector square length */ int lmathVector2LengthSqr( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2LengthSqr( vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2LengthSqr( vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -320,7 +320,7 @@ int lmathVector2LengthSqr( lua_State *L ) { } /* -> result = RL_Vector2DotProduct( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2DotProduct( Vector2 v1, Vector2 v2 ) Calculate two vectors dot product @@ -329,7 +329,7 @@ Calculate two vectors dot product */ int lmathVector2DotProduct( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2DotProduct( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2DotProduct( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -343,7 +343,7 @@ int lmathVector2DotProduct( lua_State *L ) { } /* -> result = RL_Vector2Distance( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Distance( Vector2 v1, Vector2 v2 ) Calculate distance between two vectors @@ -352,7 +352,7 @@ Calculate distance between two vectors */ int lmathVector2Distance( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Distance( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Distance( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -366,7 +366,7 @@ int lmathVector2Distance( lua_State *L ) { } /* -> result = RL_Vector2DistanceSqr( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2DistanceSqr( Vector2 v1, Vector2 v2 ) Calculate square distance between two vectors @@ -375,7 +375,7 @@ Calculate square distance between two vectors */ int lmathVector2DistanceSqr( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2DistanceSqr( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2DistanceSqr( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -389,7 +389,7 @@ int lmathVector2DistanceSqr( lua_State *L ) { } /* -> result = RL_Vector2Angle( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Angle( Vector2 v1, Vector2 v2 ) Calculate angle from two vectors @@ -398,7 +398,7 @@ Calculate angle from two vectors */ int lmathVector2Angle( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Angle( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Angle( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -412,7 +412,7 @@ int lmathVector2Angle( lua_State *L ) { } /* -> result = RL_Vector2Scale( Vector2 v, float scale ) +> result = RL.Vector2Scale( Vector2 v, float scale ) Scale vector ( multiply by value ) @@ -421,7 +421,7 @@ Scale vector ( multiply by value ) */ int lmathVector2Scale( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Scale( Vector2 v, float scale )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Scale( Vector2 v, float scale )" ); lua_pushboolean( L, false ); return 1; } @@ -435,7 +435,7 @@ int lmathVector2Scale( lua_State *L ) { } /* -> result = RL_Vector2Multiply( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Multiply( Vector2 v1, Vector2 v2 ) Multiply vector by vector @@ -444,7 +444,7 @@ Multiply vector by vector */ int lmathVector2Multiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Multiply( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Multiply( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -458,7 +458,7 @@ int lmathVector2Multiply( lua_State *L ) { } /* -> result = RL_Vector2Negate( Vector2 v ) +> result = RL.Vector2Negate( Vector2 v ) Negate vector @@ -467,7 +467,7 @@ Negate vector */ int lmathVector2Negate( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Negate( Vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Negate( Vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -479,7 +479,7 @@ int lmathVector2Negate( lua_State *L ) { } /* -> result = RL_Vector2Divide( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Divide( Vector2 v1, Vector2 v2 ) Divide vector by vector @@ -488,7 +488,7 @@ Divide vector by vector */ int lmathVector2Divide( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Divide( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Divide( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -502,7 +502,7 @@ int lmathVector2Divide( lua_State *L ) { } /* -> result = RL_Vector2Normalize( Vector2 v ) +> result = RL.Vector2Normalize( Vector2 v ) Normalize provided vector @@ -511,7 +511,7 @@ Normalize provided vector */ int lmathVector2Normalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Normalize( Vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Normalize( Vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -523,7 +523,7 @@ int lmathVector2Normalize( lua_State *L ) { } /* -> result = RL_Vector2Transform( Vector2 v, Matrix mat ) +> result = RL.Vector2Transform( Vector2 v, Matrix mat ) Transforms a Vector2 by a given Matrix @@ -532,7 +532,7 @@ Transforms a Vector2 by a given Matrix */ int lmathVector2Transform( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Transform( Vector2 v, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Transform( Vector2 v, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -546,7 +546,7 @@ int lmathVector2Transform( lua_State *L ) { } /* -> result = RL_Vector2Lerp( Vector2 v1, Vector2 v2, float amount ) +> result = RL.Vector2Lerp( Vector2 v1, Vector2 v2, float amount ) Calculate linear interpolation between two vectors @@ -555,7 +555,7 @@ Calculate linear interpolation between two vectors */ int lmathVector2Lerp( 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_Vector2Lerp( Vector2 v1, Vector2 v2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Lerp( Vector2 v1, Vector2 v2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -571,7 +571,7 @@ int lmathVector2Lerp( lua_State *L ) { } /* -> result = RL_Vector2Reflect( Vector2 v, Vector2 normal ) +> result = RL.Vector2Reflect( Vector2 v, Vector2 normal ) Calculate reflected vector to normal @@ -580,7 +580,7 @@ Calculate reflected vector to normal */ int lmathVector2Reflect( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Reflect( Vector2 v, Vector2 normal )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Reflect( Vector2 v, Vector2 normal )" ); lua_pushboolean( L, false ); return 1; } @@ -594,7 +594,7 @@ int lmathVector2Reflect( lua_State *L ) { } /* -> result = RL_Vector2Rotate( Vector2 v, float angle ) +> result = RL.Vector2Rotate( Vector2 v, float angle ) Rotate vector by angle @@ -603,7 +603,7 @@ Rotate vector by angle */ int lmathVector2Rotate( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Rotate( Vector2 v, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Rotate( Vector2 v, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -617,7 +617,7 @@ int lmathVector2Rotate( lua_State *L ) { } /* -> result = RL_Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance ) +> result = RL.Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance ) Move Vector towards target @@ -626,7 +626,7 @@ Move Vector towards target */ int lmathVector2MoveTowards( 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_Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance )" ); lua_pushboolean( L, false ); return 1; } @@ -642,7 +642,7 @@ int lmathVector2MoveTowards( lua_State *L ) { } /* -> result = RL_Vector2Invert( Vector2 v ) +> result = RL.Vector2Invert( Vector2 v ) Invert the given vector @@ -651,7 +651,7 @@ Invert the given vector */ int lmathVector2Invert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Invert( Vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Invert( Vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -663,7 +663,7 @@ int lmathVector2Invert( lua_State *L ) { } /* -> result = RL_Vector2Clamp( Vector2 v, Vector2 min, Vector2 max ) +> result = RL.Vector2Clamp( Vector2 v, Vector2 min, Vector2 max ) Clamp the components of the vector between min and max values specified by the given vectors @@ -673,7 +673,7 @@ min and max values specified by the given vectors */ int lmathVector2Clamp( 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_Vector2Clamp( Vector2 v, Vector2 min, Vector2 max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Clamp( Vector2 v, Vector2 min, Vector2 max )" ); lua_pushboolean( L, false ); return 1; } @@ -689,7 +689,7 @@ int lmathVector2Clamp( lua_State *L ) { } /* -> result = RL_Vector2ClampValue( Vector2 v, float min, float max ) +> result = RL.Vector2ClampValue( Vector2 v, float min, float max ) Clamp the magnitude of the vector between two min and max values @@ -698,7 +698,7 @@ Clamp the magnitude of the vector between two min and max values */ int lmathVector2ClampValue( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2ClampValue( Vector2 v, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2ClampValue( Vector2 v, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -714,7 +714,7 @@ int lmathVector2ClampValue( lua_State *L ) { } /* -> result = RL_Vector2Equals( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Equals( Vector2 v1, Vector2 v2 ) Check whether two given vectors are almost equal @@ -723,7 +723,7 @@ Check whether two given vectors are almost equal */ int lmathVector2Equals( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Equals( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Equals( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -741,7 +741,7 @@ int lmathVector2Equals( lua_State *L ) { */ /* -> result = RL_Vector3Zero() +> result = RL.Vector3Zero() Vector with components value 0.0f @@ -754,7 +754,7 @@ int lmathVector3Zero( lua_State *L ) { } /* -> result = RL_Vector3One() +> result = RL.Vector3One() Vector with components value 1.0f @@ -767,7 +767,7 @@ int lmathVector3One( lua_State *L ) { } /* -> result = RL_Vector3Add( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Add( Vector3 v1, Vector3 v2 ) Add two vectors @@ -776,7 +776,7 @@ Add two vectors */ int lmathVector3Add( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Add( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Add( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -790,7 +790,7 @@ int lmathVector3Add( lua_State *L ) { } /* -> result = RL_Vector3AddValue( Vector3 v, float add ) +> result = RL.Vector3AddValue( Vector3 v, float add ) Add vector and float value @@ -799,7 +799,7 @@ Add vector and float value */ int lmathVector3AddValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3AddValue( Vector3 v, float add )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3AddValue( Vector3 v, float add )" ); lua_pushboolean( L, false ); return 1; } @@ -813,7 +813,7 @@ int lmathVector3AddValue( lua_State *L ) { } /* -> result = RL_Vector3Subtract( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Subtract( Vector3 v1, Vector3 v2 ) Subtract two vectors @@ -822,7 +822,7 @@ Subtract two vectors */ int lmathVector3Subtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Subtract( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Subtract( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -836,7 +836,7 @@ int lmathVector3Subtract( lua_State *L ) { } /* -> result = RL_Vector3SubtractValue( Vector3 v, float sub ) +> result = RL.Vector3SubtractValue( Vector3 v, float sub ) Subtract vector by float value @@ -845,7 +845,7 @@ Subtract vector by float value */ int lmathVector3SubtractValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3SubtractValue( Vector3 v, float sub )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3SubtractValue( Vector3 v, float sub )" ); lua_pushboolean( L, false ); return 1; } @@ -859,7 +859,7 @@ int lmathVector3SubtractValue( lua_State *L ) { } /* -> result = RL_Vector3Scale( Vector3 v, float scalar ) +> result = RL.Vector3Scale( Vector3 v, float scalar ) Multiply vector by scalar @@ -868,7 +868,7 @@ Multiply vector by scalar */ int lmathVector3Scale( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Scale( Vector3 v, float scalar )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Scale( Vector3 v, float scalar )" ); lua_pushboolean( L, false ); return 1; } @@ -882,7 +882,7 @@ int lmathVector3Scale( lua_State *L ) { } /* -> result = RL_Vector3Multiply( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Multiply( Vector3 v1, Vector3 v2 ) Multiply vector by vector @@ -891,7 +891,7 @@ Multiply vector by vector */ int lmathVector3Multiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Multiply( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Multiply( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -905,7 +905,7 @@ int lmathVector3Multiply( lua_State *L ) { } /* -> result = RL_Vector3CrossProduct( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3CrossProduct( Vector3 v1, Vector3 v2 ) Calculate two vectors cross product @@ -914,7 +914,7 @@ Calculate two vectors cross product */ int lmathVector3CrossProduct( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3CrossProduct( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3CrossProduct( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -928,7 +928,7 @@ int lmathVector3CrossProduct( lua_State *L ) { } /* -> result = RL_Vector3Perpendicular( Vector3 v ) +> result = RL.Vector3Perpendicular( Vector3 v ) Calculate one vector perpendicular vector @@ -937,7 +937,7 @@ Calculate one vector perpendicular vector */ int lmathVector3Perpendicular( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Perpendicular( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Perpendicular( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -949,7 +949,7 @@ int lmathVector3Perpendicular( lua_State *L ) { } /* -> result = RL_Vector3Length( Vector3 v ) +> result = RL.Vector3Length( Vector3 v ) Calculate vector length @@ -958,7 +958,7 @@ Calculate vector length */ int lmathVector3Length( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Length( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Length( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -970,7 +970,7 @@ int lmathVector3Length( lua_State *L ) { } /* -> result = RL_Vector3LengthSqr( Vector3 v ) +> result = RL.Vector3LengthSqr( Vector3 v ) Calculate vector square length @@ -979,7 +979,7 @@ Calculate vector square length */ int lmathVector3LengthSqr( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3LengthSqr( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3LengthSqr( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -991,7 +991,7 @@ int lmathVector3LengthSqr( lua_State *L ) { } /* -> result = RL_Vector3DotProduct( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3DotProduct( Vector3 v1, Vector3 v2 ) Calculate two vectors dot product @@ -1000,7 +1000,7 @@ Calculate two vectors dot product */ int lmathVector3DotProduct( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3DotProduct( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3DotProduct( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1014,7 +1014,7 @@ int lmathVector3DotProduct( lua_State *L ) { } /* -> result = RL_Vector3Distance( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Distance( Vector3 v1, Vector3 v2 ) Calculate distance between two vectors @@ -1023,7 +1023,7 @@ Calculate distance between two vectors */ int lmathVector3Distance( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Distance( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Distance( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1037,7 +1037,7 @@ int lmathVector3Distance( lua_State *L ) { } /* -> result = RL_Vector3DistanceSqr( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3DistanceSqr( Vector3 v1, Vector3 v2 ) Calculate square distance between two vectors @@ -1046,7 +1046,7 @@ Calculate square distance between two vectors */ int lmathVector3DistanceSqr( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3DistanceSqr( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3DistanceSqr( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1060,7 +1060,7 @@ int lmathVector3DistanceSqr( lua_State *L ) { } /* -> result = RL_Vector3Angle( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Angle( Vector3 v1, Vector3 v2 ) Calculate angle between two vectors @@ -1069,7 +1069,7 @@ Calculate angle between two vectors */ int lmathVector3Angle( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Angle( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Angle( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1083,7 +1083,7 @@ int lmathVector3Angle( lua_State *L ) { } /* -> result = RL_Vector3Negate( Vector3 v ) +> result = RL.Vector3Negate( Vector3 v ) Negate provided vector ( invert direction ) @@ -1092,7 +1092,7 @@ Negate provided vector ( invert direction ) */ int lmathVector3Negate( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Negate( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Negate( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -1104,7 +1104,7 @@ int lmathVector3Negate( lua_State *L ) { } /* -> result = RL_Vector3Divide( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Divide( Vector3 v1, Vector3 v2 ) Divide vector by vector @@ -1113,7 +1113,7 @@ Divide vector by vector */ int lmathVector3Divide( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Divide( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Divide( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1127,7 +1127,7 @@ int lmathVector3Divide( lua_State *L ) { } /* -> result = RL_Vector3Normalize( Vector3 v ) +> result = RL.Vector3Normalize( Vector3 v ) Normalize provided vector @@ -1136,7 +1136,7 @@ Normalize provided vector */ int lmathVector3Normalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Normalize( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Normalize( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -1148,7 +1148,7 @@ int lmathVector3Normalize( lua_State *L ) { } /* -> v1, v2 = RL_Vector3OrthoNormalize( Vector3 v1, Vector3 v2 ) +> v1, v2 = RL.Vector3OrthoNormalize( Vector3 v1, Vector3 v2 ) Orthonormalize provided vectors. Makes vectors normalized and orthogonal to each other. Gram-Schmidt function implementation @@ -1158,7 +1158,7 @@ Gram-Schmidt function implementation */ int lmathVector3OrthoNormalize( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3OrthoNormalize( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3OrthoNormalize( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1175,7 +1175,7 @@ int lmathVector3OrthoNormalize( lua_State *L ) { } /* -> result = RL_Vector3Transform( Vector3 v, Matrix mat ) +> result = RL.Vector3Transform( Vector3 v, Matrix mat ) Transforms a Vector3 by a given Matrix @@ -1184,7 +1184,7 @@ Transforms a Vector3 by a given Matrix */ int lmathVector3Transform( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Transform( Vector3 v, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Transform( Vector3 v, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1198,7 +1198,7 @@ int lmathVector3Transform( lua_State *L ) { } /* -> result = RL_Vector3RotateByQuaternion( Vector3 v, Quaternion q ) +> result = RL.Vector3RotateByQuaternion( Vector3 v, Quaternion q ) Transform a vector by quaternion rotation @@ -1207,7 +1207,7 @@ Transform a vector by quaternion rotation */ int lmathVector3RotateByQuaternion( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3RotateByQuaternion( Vector3 v, Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3RotateByQuaternion( Vector3 v, Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -1221,7 +1221,7 @@ int lmathVector3RotateByQuaternion( lua_State *L ) { } /* -> result = RL_Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle ) +> result = RL.Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle ) Rotates a vector around an axis @@ -1230,7 +1230,7 @@ Rotates a vector around an axis */ int lmathVector3RotateByAxisAngle( 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_Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1246,7 +1246,7 @@ int lmathVector3RotateByAxisAngle( lua_State *L ) { } /* -> result = RL_Vector3Lerp( Vector3 v1, Vector3 v2, float amount ) +> result = RL.Vector3Lerp( Vector3 v1, Vector3 v2, float amount ) Calculate linear interpolation between two vectors @@ -1255,7 +1255,7 @@ Calculate linear interpolation between two vectors */ int lmathVector3Lerp( 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_Vector3Lerp( Vector3 v1, Vector3 v2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Lerp( Vector3 v1, Vector3 v2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -1271,7 +1271,7 @@ int lmathVector3Lerp( lua_State *L ) { } /* -> result = RL_Vector3Reflect( Vector3 v, Vector3 normal ) +> result = RL.Vector3Reflect( Vector3 v, Vector3 normal ) Calculate reflected vector to normal @@ -1280,7 +1280,7 @@ Calculate reflected vector to normal */ int lmathVector3Reflect( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Reflect( Vector3 v, Vector3 normal )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Reflect( Vector3 v, Vector3 normal )" ); lua_pushboolean( L, false ); return 1; } @@ -1294,7 +1294,7 @@ int lmathVector3Reflect( lua_State *L ) { } /* -> result = RL_Vector3Min( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Min( Vector3 v1, Vector3 v2 ) Get min value for each pair of components @@ -1303,7 +1303,7 @@ Get min value for each pair of components */ int lmathVector3Min( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Min( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Min( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1317,7 +1317,7 @@ int lmathVector3Min( lua_State *L ) { } /* -> result = RL_Vector3Max( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Max( Vector3 v1, Vector3 v2 ) Get max value for each pair of components @@ -1326,7 +1326,7 @@ Get max value for each pair of components */ int lmathVector3Max( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Max( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Max( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1340,7 +1340,7 @@ int lmathVector3Max( lua_State *L ) { } /* -> result = RL_Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c ) +> result = RL.Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c ) Compute barycenter coordinates ( u, v, w ) for point p with respect to triangle ( a, b, c ) NOTE: Assumes P is on the plane of the triangle @@ -1350,7 +1350,7 @@ NOTE: Assumes P is on the plane of the triangle */ int lmathVector3Barycenter( 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_Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c )" ); lua_pushboolean( L, false ); return 1; } @@ -1368,7 +1368,7 @@ int lmathVector3Barycenter( lua_State *L ) { } /* -> result = RL_Vector3Unproject( Vector3 source, Matrix projection, Matrix view ) +> result = RL.Vector3Unproject( Vector3 source, Matrix projection, Matrix view ) Projects a Vector3 from screen space into object space NOTE: We are avoiding calling other raymath functions despite available @@ -1378,7 +1378,7 @@ NOTE: We are avoiding calling other raymath functions despite available */ int lmathVector3Unproject( 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_Vector3Unproject( Vector3 source, Matrix projection, Matrix view )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Unproject( Vector3 source, Matrix projection, Matrix view )" ); lua_pushboolean( L, false ); return 1; } @@ -1394,7 +1394,7 @@ int lmathVector3Unproject( lua_State *L ) { } /* -> result = RL_Vector3Invert( Vector3 v ) +> result = RL.Vector3Invert( Vector3 v ) Invert the given vector @@ -1403,7 +1403,7 @@ Invert the given vector */ int lmathVector3Invert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Invert( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Invert( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -1415,7 +1415,7 @@ int lmathVector3Invert( lua_State *L ) { } /* -> result = RL_Vector3Clamp( Vector3 v, Vector3 min, Vector3 max ) +> result = RL.Vector3Clamp( Vector3 v, Vector3 min, Vector3 max ) Clamp the components of the vector between min and max values specified by the given vectors @@ -1425,7 +1425,7 @@ min and max values specified by the given vectors */ int lmathVector3Clamp( 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_Vector3Clamp( Vector3 v, Vector3 min, Vector3 max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Clamp( Vector3 v, Vector3 min, Vector3 max )" ); lua_pushboolean( L, false ); return 1; } @@ -1441,7 +1441,7 @@ int lmathVector3Clamp( lua_State *L ) { } /* -> result = RL_Vector3ClampValue( Vector3 v, float min, float max ) +> result = RL.Vector3ClampValue( Vector3 v, float min, float max ) Clamp the magnitude of the vector between two values @@ -1450,7 +1450,7 @@ Clamp the magnitude of the vector between two values */ int lmathVector3ClampValue( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3ClampValue( Vector3 v, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3ClampValue( Vector3 v, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -1466,7 +1466,7 @@ int lmathVector3ClampValue( lua_State *L ) { } /* -> result = RL_Vector3Equals( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Equals( Vector3 v1, Vector3 v2 ) Check whether two given vectors are almost equal @@ -1475,7 +1475,7 @@ Check whether two given vectors are almost equal */ int lmathVector3Equals( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Equals( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Equals( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1489,7 +1489,7 @@ int lmathVector3Equals( lua_State *L ) { } /* -> result = RL_Vector3Refract( Vector3 v, Vector3 n, float r ) +> result = RL.Vector3Refract( Vector3 v, Vector3 n, float r ) Compute the direction of a refracted ray where v specifies the normalized direction of the incoming ray, n specifies the @@ -1503,7 +1503,7 @@ on the other side of the surface */ int lmathVector3Refract( 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_Vector3Refract( Vector3 v, Vector3 n, float r )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Refract( Vector3 v, Vector3 n, float r )" ); lua_pushboolean( L, false ); return 1; } @@ -1523,7 +1523,7 @@ int lmathVector3Refract( lua_State *L ) { */ /* -> result = RL_MatrixDeterminant( Matrix mat ) +> result = RL.MatrixDeterminant( Matrix mat ) Compute matrix determinant @@ -1532,7 +1532,7 @@ Compute matrix determinant */ int lmathMatrixDeterminant( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixDeterminant( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixDeterminant( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1544,7 +1544,7 @@ int lmathMatrixDeterminant( lua_State *L ) { } /* -> result = RL_MatrixTrace( Matrix mat ) +> result = RL.MatrixTrace( Matrix mat ) Get the trace of the matrix ( sum of the values along the diagonal ) @@ -1553,7 +1553,7 @@ Get the trace of the matrix ( sum of the values along the diagonal ) */ int lmathMatrixTrace( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixTrace( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixTrace( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1565,7 +1565,7 @@ int lmathMatrixTrace( lua_State *L ) { } /* -> result = RL_MatrixTranspose( Matrix mat ) +> result = RL.MatrixTranspose( Matrix mat ) Transposes provided matrix @@ -1574,7 +1574,7 @@ Transposes provided matrix */ int lmathMatrixTranspose( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixTranspose( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixTranspose( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1586,7 +1586,7 @@ int lmathMatrixTranspose( lua_State *L ) { } /* -> result = RL_MatrixInvert( Matrix mat ) +> result = RL.MatrixInvert( Matrix mat ) Invert provided matrix @@ -1595,7 +1595,7 @@ Invert provided matrix */ int lmathMatrixInvert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixInvert( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixInvert( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1607,7 +1607,7 @@ int lmathMatrixInvert( lua_State *L ) { } /* -> result = RL_MatrixIdentity() +> result = RL.MatrixIdentity() Get identity matrix @@ -1620,7 +1620,7 @@ int lmathMatrixIdentity( lua_State *L ) { } /* -> result = RL_MatrixAdd( Matrix left, Matrix right ) +> result = RL.MatrixAdd( Matrix left, Matrix right ) Add two matrices @@ -1629,7 +1629,7 @@ Add two matrices */ int lmathMatrixAdd( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixAdd( Matrix left, Matrix right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixAdd( Matrix left, Matrix right )" ); lua_pushboolean( L, false ); return 1; } @@ -1643,7 +1643,7 @@ int lmathMatrixAdd( lua_State *L ) { } /* -> result = RL_MatrixSubtract( Matrix left, Matrix right ) +> result = RL.MatrixSubtract( Matrix left, Matrix right ) Subtract two matrices (left - right) @@ -1652,7 +1652,7 @@ Subtract two matrices (left - right) */ int lmathMatrixSubtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixSubtract( Matrix left, Matrix right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixSubtract( Matrix left, Matrix right )" ); lua_pushboolean( L, false ); return 1; } @@ -1666,7 +1666,7 @@ int lmathMatrixSubtract( lua_State *L ) { } /* -> result = RL_MatrixMultiply( Matrix left, Matrix right ) +> result = RL.MatrixMultiply( Matrix left, Matrix right ) Get two matrix multiplication @@ -1675,7 +1675,7 @@ Get two matrix multiplication */ int lmathMatrixMultiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixMultiply( Matrix left, Matrix right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixMultiply( Matrix left, Matrix right )" ); lua_pushboolean( L, false ); return 1; } @@ -1689,7 +1689,7 @@ int lmathMatrixMultiply( lua_State *L ) { } /* -> result = RL_MatrixTranslate( Vector3 translate ) +> result = RL.MatrixTranslate( Vector3 translate ) Get translation matrix @@ -1698,7 +1698,7 @@ Get translation matrix */ int lmathMatrixTranslate( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixTranslate( Vector3 translate )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixTranslate( Vector3 translate )" ); lua_pushboolean( L, false ); return 1; } @@ -1710,7 +1710,7 @@ int lmathMatrixTranslate( lua_State *L ) { } /* -> result = RL_MatrixRotate( Vector3 axis, float angle ) +> result = RL.MatrixRotate( Vector3 axis, float angle ) Create rotation matrix from axis and angle. NOTE: Angle should be provided in radians @@ -1719,7 +1719,7 @@ Create rotation matrix from axis and angle. NOTE: Angle should be provided in ra */ int lmathMatrixRotate( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotate( Vector3 axis, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotate( Vector3 axis, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1733,7 +1733,7 @@ int lmathMatrixRotate( lua_State *L ) { } /* -> result = RL_MatrixRotateX( float angle ) +> result = RL.MatrixRotateX( float angle ) Get x-rotation matrix ( angle in radians ) @@ -1742,7 +1742,7 @@ Get x-rotation matrix ( angle in radians ) */ int lmathMatrixRotateX( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateX( float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateX( float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1754,7 +1754,7 @@ int lmathMatrixRotateX( lua_State *L ) { } /* -> result = RL_MatrixRotateY( float angle ) +> result = RL.MatrixRotateY( float angle ) Get y-rotation matrix ( angle in radians ) @@ -1763,7 +1763,7 @@ Get y-rotation matrix ( angle in radians ) */ int lmathMatrixRotateY( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateY( float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateY( float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1775,7 +1775,7 @@ int lmathMatrixRotateY( lua_State *L ) { } /* -> result = RL_MatrixRotateZ( float angle ) +> result = RL.MatrixRotateZ( float angle ) Get z-rotation matrix ( angle in radians ) @@ -1784,7 +1784,7 @@ Get z-rotation matrix ( angle in radians ) */ int lmathMatrixRotateZ( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateZ( float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateZ( float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1796,7 +1796,7 @@ int lmathMatrixRotateZ( lua_State *L ) { } /* -> result = RL_MatrixRotateXYZ( Vector3 angle ) +> result = RL.MatrixRotateXYZ( Vector3 angle ) Get xyz-rotation matrix ( angles in radians ) @@ -1805,7 +1805,7 @@ Get xyz-rotation matrix ( angles in radians ) */ int lmathMatrixRotateXYZ( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateXYZ( Vector3 angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateXYZ( Vector3 angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1817,7 +1817,7 @@ int lmathMatrixRotateXYZ( lua_State *L ) { } /* -> result = RL_MatrixRotateZYX( Vector3 angle ) +> result = RL.MatrixRotateZYX( Vector3 angle ) Get zyx-rotation matrix ( angles in radians ) @@ -1826,7 +1826,7 @@ Get zyx-rotation matrix ( angles in radians ) */ int lmathMatrixRotateZYX( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateZYX( Vector3 angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateZYX( Vector3 angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1838,7 +1838,7 @@ int lmathMatrixRotateZYX( lua_State *L ) { } /* -> result = RL_MatrixScale( Vector3 scale ) +> result = RL.MatrixScale( Vector3 scale ) Get scaling matrix @@ -1847,7 +1847,7 @@ Get scaling matrix */ int lmathMatrixScale( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixScale( Vector3 scale )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixScale( Vector3 scale )" ); lua_pushboolean( L, false ); return 1; } @@ -1859,7 +1859,7 @@ int lmathMatrixScale( lua_State *L ) { } /* -> result = RL_MatrixFrustum( double left, double right, double bottom, double top, double near, double far ) +> result = RL.MatrixFrustum( double left, double right, double bottom, double top, double near, double far ) Get perspective projection matrix @@ -1869,7 +1869,7 @@ Get perspective projection matrix int lmathMatrixFrustum( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_isnumber( L, -5 ) || !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_MatrixFrustum( double left, double right, double bottom, double top, double near, double far )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixFrustum( double left, double right, double bottom, double top, double near, double far )" ); lua_pushboolean( L, false ); return 1; } @@ -1886,7 +1886,7 @@ int lmathMatrixFrustum( lua_State *L ) { } /* -> result = RL_MatrixPerspective( double fovy, double aspect, double near, double far ) +> result = RL.MatrixPerspective( double fovy, double aspect, double near, double far ) Get perspective projection matrix @@ -1895,7 +1895,7 @@ Get perspective projection matrix */ int lmathMatrixPerspective( 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_MatrixPerspective( double fovy, double aspect, double near, double far )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixPerspective( double fovy, double aspect, double near, double far )" ); lua_pushboolean( L, false ); return 1; } @@ -1910,7 +1910,7 @@ int lmathMatrixPerspective( lua_State *L ) { } /* -> result = RL_MatrixOrtho( double left, double right, double bottom, double top, double near, double far ) +> result = RL.MatrixOrtho( double left, double right, double bottom, double top, double near, double far ) Get orthographic projection matrix @@ -1920,7 +1920,7 @@ Get orthographic projection matrix int lmathMatrixOrtho( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_isnumber( L, -5 ) || !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_MatrixOrtho( double left, double right, double bottom, double top, double near, double far )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixOrtho( double left, double right, double bottom, double top, double near, double far )" ); lua_pushboolean( L, false ); return 1; } @@ -1937,7 +1937,7 @@ int lmathMatrixOrtho( lua_State *L ) { } /* -> result = RL_MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up ) +> result = RL.MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up ) Get camera look-at matrix ( View matrix ) @@ -1946,7 +1946,7 @@ Get camera look-at matrix ( View matrix ) */ int lmathMatrixLookAt( 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_MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up )" ); lua_pushboolean( L, false ); return 1; } @@ -1966,7 +1966,7 @@ int lmathMatrixLookAt( lua_State *L ) { */ /* -> result = RL_QuaternionAdd( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionAdd( Quaternion q1, Quaternion q2 ) Add two quaternions @@ -1975,7 +1975,7 @@ Add two quaternions */ int lmathQuaternionAdd( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionAdd( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionAdd( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1989,7 +1989,7 @@ int lmathQuaternionAdd( lua_State *L ) { } /* -> result = RL_QuaternionAddValue( Quaternion q, float add ) +> result = RL.QuaternionAddValue( Quaternion q, float add ) Add quaternion and float value @@ -1998,7 +1998,7 @@ Add quaternion and float value */ int lmathQuaternionAddValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionAddValue( Quaternion q, float add )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionAddValue( Quaternion q, float add )" ); lua_pushboolean( L, false ); return 1; } @@ -2012,7 +2012,7 @@ int lmathQuaternionAddValue( lua_State *L ) { } /* -> result = RL_QuaternionSubtract( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionSubtract( Quaternion q1, Quaternion q2 ) Subtract two quaternions @@ -2021,7 +2021,7 @@ Subtract two quaternions */ int lmathQuaternionSubtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionSubtract( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionSubtract( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -2035,7 +2035,7 @@ int lmathQuaternionSubtract( lua_State *L ) { } /* -> result = RL_QuaternionSubtractValue( Quaternion q, float sub ) +> result = RL.QuaternionSubtractValue( Quaternion q, float sub ) Subtract quaternion and float value @@ -2044,7 +2044,7 @@ Subtract quaternion and float value */ int lmathQuaternionSubtractValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionSubtractValue( Quaternion q, float sub )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionSubtractValue( Quaternion q, float sub )" ); lua_pushboolean( L, false ); return 1; } @@ -2058,7 +2058,7 @@ int lmathQuaternionSubtractValue( lua_State *L ) { } /* -> result = RL_QuaternionIdentity() +> result = RL.QuaternionIdentity() Get identity quaternion @@ -2071,7 +2071,7 @@ int lmathQuaternionIdentity( lua_State *L ) { } /* -> result = RL_QuaternionLength( Quaternion q ) +> result = RL.QuaternionLength( Quaternion q ) Computes the length of a quaternion @@ -2080,7 +2080,7 @@ Computes the length of a quaternion */ int lmathQuaternionLength( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionLength( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionLength( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2092,7 +2092,7 @@ int lmathQuaternionLength( lua_State *L ) { } /* -> result = RL_QuaternionNormalize( Quaternion q ) +> result = RL.QuaternionNormalize( Quaternion q ) Normalize provided quaternion @@ -2101,7 +2101,7 @@ Normalize provided quaternion */ int lmathQuaternionNormalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionNormalize( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionNormalize( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2113,7 +2113,7 @@ int lmathQuaternionNormalize( lua_State *L ) { } /* -> result = RL_QuaternionInvert( Quaternion q ) +> result = RL.QuaternionInvert( Quaternion q ) Invert provided quaternion @@ -2122,7 +2122,7 @@ Invert provided quaternion */ int lmathQuaternionInvert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionInvert( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionInvert( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2134,7 +2134,7 @@ int lmathQuaternionInvert( lua_State *L ) { } /* -> result = RL_QuaternionMultiply( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionMultiply( Quaternion q1, Quaternion q2 ) Calculate two quaternion multiplication @@ -2143,7 +2143,7 @@ Calculate two quaternion multiplication */ int lmathQuaternionMultiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionMultiply( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionMultiply( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -2157,7 +2157,7 @@ int lmathQuaternionMultiply( lua_State *L ) { } /* -> result = RL_QuaternionScale( Quaternion q, float mul ) +> result = RL.QuaternionScale( Quaternion q, float mul ) Scale quaternion by float value @@ -2166,7 +2166,7 @@ Scale quaternion by float value */ int lmathQuaternionScale( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionScale( Quaternion q, float mul )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionScale( Quaternion q, float mul )" ); lua_pushboolean( L, false ); return 1; } @@ -2180,7 +2180,7 @@ int lmathQuaternionScale( lua_State *L ) { } /* -> result = RL_QuaternionDivide( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionDivide( Quaternion q1, Quaternion q2 ) Divide two quaternions @@ -2189,7 +2189,7 @@ Divide two quaternions */ int lmathQuaternionDivide( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionDivide( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionDivide( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -2203,7 +2203,7 @@ int lmathQuaternionDivide( lua_State *L ) { } /* -> result = RL_QuaternionLerp( Quaternion q1, Quaternion q2, float amount ) +> result = RL.QuaternionLerp( Quaternion q1, Quaternion q2, float amount ) Calculate linear interpolation between two quaternions @@ -2212,7 +2212,7 @@ Calculate linear interpolation between two quaternions */ int lmathQuaternionLerp( 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_QuaternionLerp( Quaternion q1, Quaternion q2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionLerp( Quaternion q1, Quaternion q2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -2228,7 +2228,7 @@ int lmathQuaternionLerp( lua_State *L ) { } /* -> result = RL_QuaternionNlerp( Quaternion q1, Quaternion q2, float amount ) +> result = RL.QuaternionNlerp( Quaternion q1, Quaternion q2, float amount ) Calculate slerp-optimized interpolation between two quaternions @@ -2237,7 +2237,7 @@ Calculate slerp-optimized interpolation between two quaternions */ int lmathQuaternionNlerp( 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_QuaternionNlerp( Quaternion q1, Quaternion q2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionNlerp( Quaternion q1, Quaternion q2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -2253,7 +2253,7 @@ int lmathQuaternionNlerp( lua_State *L ) { } /* -> result = RL_QuaternionSlerp( Quaternion q1, Quaternion q2, float amount ) +> result = RL.QuaternionSlerp( Quaternion q1, Quaternion q2, float amount ) Calculates spherical linear interpolation between two quaternions @@ -2262,7 +2262,7 @@ Calculates spherical linear interpolation between two quaternions */ int lmathQuaternionSlerp( 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_QuaternionSlerp( Quaternion q1, Quaternion q2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionSlerp( Quaternion q1, Quaternion q2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -2278,7 +2278,7 @@ int lmathQuaternionSlerp( lua_State *L ) { } /* -> result = RL_QuaternionFromVector3ToVector3( Vector3 from, Vector3 to ) +> result = RL.QuaternionFromVector3ToVector3( Vector3 from, Vector3 to ) Calculate quaternion based on the rotation from one vector to another @@ -2287,7 +2287,7 @@ Calculate quaternion based on the rotation from one vector to another */ int lmathQuaternionFromVector3ToVector3( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromVector3ToVector3( Vector3 from, Vector3 to )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromVector3ToVector3( Vector3 from, Vector3 to )" ); lua_pushboolean( L, false ); return 1; } @@ -2301,7 +2301,7 @@ int lmathQuaternionFromVector3ToVector3( lua_State *L ) { } /* -> result = RL_QuaternionFromMatrix( Matrix mat ) +> result = RL.QuaternionFromMatrix( Matrix mat ) Get a quaternion for a given rotation matrix @@ -2310,7 +2310,7 @@ Get a quaternion for a given rotation matrix */ int lmathQuaternionFromMatrix( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromMatrix( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromMatrix( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -2322,7 +2322,7 @@ int lmathQuaternionFromMatrix( lua_State *L ) { } /* -> result = RL_QuaternionToMatrix( Quaternion q ) +> result = RL.QuaternionToMatrix( Quaternion q ) Get a quaternion for a given rotation matrix @@ -2331,7 +2331,7 @@ Get a quaternion for a given rotation matrix */ int lmathQuaternionToMatrix( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionToMatrix( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionToMatrix( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2343,7 +2343,7 @@ int lmathQuaternionToMatrix( lua_State *L ) { } /* -> result = RL_QuaternionFromAxisAngle( Vector3 axis, float angle ) +> result = RL.QuaternionFromAxisAngle( Vector3 axis, float angle ) Get rotation quaternion for an angle and axis NOTE: angle must be provided in radians @@ -2353,7 +2353,7 @@ NOTE: angle must be provided in radians */ int lmathQuaternionFromAxisAngle( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromAxisAngle( Vector3 axis, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromAxisAngle( Vector3 axis, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -2367,7 +2367,7 @@ int lmathQuaternionFromAxisAngle( lua_State *L ) { } /* -> axis, angle = RL_QuaternionToAxisAngle( Quaternion q ) +> axis, angle = RL.QuaternionToAxisAngle( Quaternion q ) Get the rotation angle and axis for a given quaternion @@ -2376,7 +2376,7 @@ Get the rotation angle and axis for a given quaternion */ int lmathQuaternionToAxisAngle( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionToAxisAngle( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionToAxisAngle( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2393,7 +2393,7 @@ int lmathQuaternionToAxisAngle( lua_State *L ) { } /* -> result = RL_QuaternionFromEuler( float pitch, float yaw, float roll ) +> result = RL.QuaternionFromEuler( float pitch, float yaw, float roll ) Get the quaternion equivalent to Euler angles NOTE: Rotation order is ZYX @@ -2403,7 +2403,7 @@ NOTE: Rotation order is ZYX */ int lmathQuaternionFromEuler( 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_QuaternionFromEuler( float pitch, float yaw, float roll )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromEuler( float pitch, float yaw, float roll )" ); lua_pushboolean( L, false ); return 1; } @@ -2417,7 +2417,7 @@ int lmathQuaternionFromEuler( lua_State *L ) { } /* -> result = RL_QuaternionToEuler( Quaternion q ) +> result = RL.QuaternionToEuler( Quaternion q ) Get the Euler angles equivalent to quaternion (roll, pitch, yaw) NOTE: Angles are returned in a Vector3 struct in radians @@ -2427,7 +2427,7 @@ NOTE: Angles are returned in a Vector3 struct in radians */ int lmathQuaternionToEuler( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionToEuler( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionToEuler( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2439,7 +2439,7 @@ int lmathQuaternionToEuler( lua_State *L ) { } /* -> result = RL_QuaternionTransform( Quaternion q, Matrix mat ) +> result = RL.QuaternionTransform( Quaternion q, Matrix mat ) Transform a quaternion given a transformation matrix @@ -2448,7 +2448,7 @@ Transform a quaternion given a transformation matrix */ int lmathQuaternionTransform( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionTransform( Quaternion q, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionTransform( Quaternion q, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -2462,7 +2462,7 @@ int lmathQuaternionTransform( lua_State *L ) { } /* -> result = RL_QuaternionEquals( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionEquals( Quaternion q1, Quaternion q2 ) Check whether two given quaternions are almost equal @@ -2471,7 +2471,7 @@ Check whether two given quaternions are almost equal */ int lmathQuaternionEquals( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionEquals( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionEquals( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } diff --git a/src/shapes.c b/src/shapes.c index 30006ce..cf50ca3 100644 --- a/src/shapes.c +++ b/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; } diff --git a/src/text.c b/src/text.c index f5f8b68..a7a3d06 100644 --- a/src/text.c +++ b/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; } diff --git a/src/textures.c b/src/textures.c index 5121718..6398971 100644 --- a/src/textures.c +++ b/src/textures.c @@ -136,7 +136,7 @@ Texture2D* texturesGetSourceTexture( size_t index ) { */ /* -> image = RL_LoadImage( string fileName ) +> image = RL.LoadImage( string fileName ) Load image from file into CPU memory ( RAM ) @@ -145,7 +145,7 @@ Load image from file into CPU memory ( RAM ) */ int ltexturesLoadImage( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadImage( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadImage( string fileName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -164,7 +164,7 @@ int ltexturesLoadImage( lua_State *L ) { } /* -> image = RL_LoadImageFromTexture( Texture2D texture ) +> image = RL.LoadImageFromTexture( Texture2D texture ) Load image from GPU texture data @@ -173,7 +173,7 @@ Load image from GPU texture data */ int ltexturesLoadImageFromTexture( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadImageFromTexture( Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadImageFromTexture( Texture2D texture )" ); lua_pushinteger( L, -1 ); return 1; } @@ -191,7 +191,7 @@ int ltexturesLoadImageFromTexture( lua_State *L ) { } /* -> image = RL_LoadImageFromScreen() +> image = RL.LoadImageFromScreen() Load image from screen buffer and ( screenshot ) @@ -206,7 +206,7 @@ int ltexturesLoadImageFromScreen( lua_State *L ) { } /* -> success = RL_UnloadImage( Image image ) +> success = RL.UnloadImage( Image image ) Unload image from CPU memory ( RAM ) @@ -215,7 +215,7 @@ Unload image from CPU memory ( RAM ) */ int ltexturesUnloadImage( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadImage( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadImage( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -233,7 +233,7 @@ int ltexturesUnloadImage( lua_State *L ) { } /* -> success = RL_ExportImage( Image image, string fileName ) +> success = RL.ExportImage( Image image, string fileName ) Export image data to file, returns true on success @@ -242,7 +242,7 @@ Export image data to file, returns true on success */ int ltexturesExportImage( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ExportImage( Image image, string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ExportImage( Image image, string fileName )" ); lua_pushnil( L ); return 1; } @@ -258,7 +258,7 @@ int ltexturesExportImage( lua_State *L ) { } /* -> success = RL_ExportImageAsCode( Image image, string fileName ) +> success = RL.ExportImageAsCode( Image image, string fileName ) Export image as code file defining an array of bytes, returns true on success @@ -267,7 +267,7 @@ Export image as code file defining an array of bytes, returns true on success */ int ltexturesExportImageAsCode( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ExportImageAsCode( Image image, string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ExportImageAsCode( Image image, string fileName )" ); lua_pushnil( L ); return 1; } @@ -287,7 +287,7 @@ int ltexturesExportImageAsCode( lua_State *L ) { */ /* -> image = RL_GenImageColor( int width, int height, Color color ) +> image = RL.GenImageColor( int width, int height, Color color ) Generate image: plain color @@ -296,7 +296,7 @@ Generate image: plain color */ int ltexturesGenImageColor( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenImageColor( int width, int height, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageColor( int width, int height, Color color )" ); lua_pushinteger( L, -1 ); return 1; } @@ -314,7 +314,7 @@ int ltexturesGenImageColor( lua_State *L ) { } /* -> image = RL_GenImageGradientV( Vector2 size, Color top, Color bottom ) +> image = RL.GenImageGradientV( Vector2 size, Color top, Color bottom ) Generate image: vertical gradient @@ -323,7 +323,7 @@ Generate image: vertical gradient */ int ltexturesGenImageGradientV( 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_GenImageGradientV( Vector2 size, Color top, Color bottom )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageGradientV( Vector2 size, Color top, Color bottom )" ); lua_pushinteger( L, -1 ); return 1; } @@ -341,7 +341,7 @@ int ltexturesGenImageGradientV( lua_State *L ) { } /* -> image = RL_GenImageGradientH( Vector2 size, Color left, Color right ) +> image = RL.GenImageGradientH( Vector2 size, Color left, Color right ) Generate image: horizontal gradient @@ -350,7 +350,7 @@ Generate image: horizontal gradient */ int ltexturesGenImageGradientH( 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_GenImageGradientH( Vector2 size, Color left, Color right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageGradientH( Vector2 size, Color left, Color right )" ); lua_pushinteger( L, -1 ); return 1; } @@ -368,7 +368,7 @@ int ltexturesGenImageGradientH( lua_State *L ) { } /* -> image = RL_GenImageGradientRadial( Vector2 size, float density, Color inner, Color outer ) +> image = RL.GenImageGradientRadial( Vector2 size, float density, Color inner, Color outer ) Generate image: radial gradient @@ -377,7 +377,7 @@ Generate image: radial gradient */ int ltexturesGenImageGradientRadial( 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_GenImageGradientRadial( Vector2 size, float density, Color inner, Color outer )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageGradientRadial( Vector2 size, float density, Color inner, Color outer )" ); lua_pushinteger( L, -1 ); return 1; } @@ -397,7 +397,7 @@ int ltexturesGenImageGradientRadial( lua_State *L ) { } /* -> image = RL_GenImageChecked( Vector2 size, Vector2 checks, Color col1, Color col2 ) +> image = RL.GenImageChecked( Vector2 size, Vector2 checks, Color col1, Color col2 ) Generate image: checked @@ -406,7 +406,7 @@ Generate image: checked */ int ltexturesGenImageChecked( 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_GenImageChecked( Vector2 size, Vector2 checks, Color col1, Color col2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageChecked( Vector2 size, Vector2 checks, Color col1, Color col2 )" ); lua_pushinteger( L, -1 ); return 1; } @@ -426,7 +426,7 @@ int ltexturesGenImageChecked( lua_State *L ) { } /* -> image = RL_GenImageWhiteNoise( Vector2 size, float factor ) +> image = RL.GenImageWhiteNoise( Vector2 size, float factor ) Generate image: white noise @@ -435,7 +435,7 @@ Generate image: white noise */ int ltexturesGenImageWhiteNoise( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenImageWhiteNoise( Vector2 size, float factor )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageWhiteNoise( Vector2 size, float factor )" ); lua_pushinteger( L, -1 ); return 1; } @@ -451,7 +451,7 @@ int ltexturesGenImageWhiteNoise( lua_State *L ) { } /* -> image = RL_GenImageCellular( Vector2 size, int tileSize ) +> image = RL.GenImageCellular( Vector2 size, int tileSize ) Generate image: cellular algorithm. Bigger tileSize means bigger cells @@ -460,7 +460,7 @@ Generate image: cellular algorithm. Bigger tileSize means bigger cells */ int ltexturesGenImageCellular( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenImageCellular( Vector2 size, int tileSize )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenImageCellular( Vector2 size, int tileSize )" ); lua_pushinteger( L, -1 ); return 1; } @@ -480,7 +480,7 @@ int ltexturesGenImageCellular( lua_State *L ) { */ /* -> image = RL_ImageCopy( Image image ) +> image = RL.ImageCopy( Image image ) Create an image duplicate ( useful for transformations ) @@ -489,7 +489,7 @@ Create an image duplicate ( useful for transformations ) */ int ltexturesImageCopy( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageCopy( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageCopy( Image image )" ); lua_pushinteger( L, -1 ); return 1; } @@ -507,7 +507,7 @@ int ltexturesImageCopy( lua_State *L ) { } /* -> image = RL_ImageFromImage( Image image, Rectangle rec ) +> image = RL.ImageFromImage( Image image, Rectangle rec ) Create an image from another image piece @@ -516,7 +516,7 @@ Create an image from another image piece */ int ltexturesImageFromImage( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageFromImage( Image image, Rectangle rec )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageFromImage( Image image, Rectangle rec )" ); lua_pushinteger( L, -1 ); return 1; } @@ -536,7 +536,7 @@ int ltexturesImageFromImage( lua_State *L ) { } /* -> image = RL_ImageText( Font font, string text, float fontSize, float spacing, Color tint ) +> image = RL.ImageText( Font font, string text, float fontSize, float spacing, Color tint ) Create an image from text ( custom sprite font ) @@ -546,7 +546,7 @@ Create an image from text ( custom sprite font ) int ltexturesImageText( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !lua_isstring( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageText( Font font, string text, float fontSize, float spacing, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageText( Font font, string text, float fontSize, float spacing, Color tint )" ); lua_pushinteger( L, -1 ); return 1; } @@ -570,7 +570,7 @@ int ltexturesImageText( lua_State *L ) { } /* -> success = RL_ImageFormat( Image image, int newFormat ) +> success = RL.ImageFormat( Image image, int newFormat ) Convert image data to desired format @@ -579,7 +579,7 @@ Convert image data to desired format */ int ltexturesImageFormat( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageFormat( Image image, int newFormat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageFormat( Image image, int newFormat )" ); lua_pushboolean( L, false ); return 1; } @@ -598,7 +598,7 @@ int ltexturesImageFormat( lua_State *L ) { } /* -> success = RL_ImageToPOT( Image image, Color fill ) +> success = RL.ImageToPOT( Image image, Color fill ) Convert image to POT ( power-of-two ) @@ -607,7 +607,7 @@ Convert image to POT ( power-of-two ) */ int ltexturesImageToPOT( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageToPOT( Image image, Color fill )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageToPOT( Image image, Color fill )" ); lua_pushboolean( L, false ); return 1; } @@ -626,7 +626,7 @@ int ltexturesImageToPOT( lua_State *L ) { } /* -> success = RL_ImageCrop( Image image, Rectangle crop ) +> success = RL.ImageCrop( Image image, Rectangle crop ) Crop an image to a defined rectangle @@ -635,7 +635,7 @@ Crop an image to a defined rectangle */ int ltexturesImageCrop( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageCrop( Image image, Rectangle crop )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageCrop( Image image, Rectangle crop )" ); lua_pushboolean( L, false ); return 1; } @@ -654,7 +654,7 @@ int ltexturesImageCrop( lua_State *L ) { } /* -> success = RL_ImageAlphaCrop( Image image, float threshold ) +> success = RL.ImageAlphaCrop( Image image, float threshold ) Crop image depending on alpha value @@ -663,7 +663,7 @@ Crop image depending on alpha value */ int ltexturesImageAlphaCrop( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageAlphaCrop( Image image, float threshold )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageAlphaCrop( Image image, float threshold )" ); lua_pushboolean( L, false ); return 1; } @@ -682,7 +682,7 @@ int ltexturesImageAlphaCrop( lua_State *L ) { } /* -> success = RL_ImageAlphaClear( Image image, Color color, float threshold ) +> success = RL.ImageAlphaClear( Image image, Color color, float threshold ) Clear alpha channel to desired color @@ -691,7 +691,7 @@ Clear alpha channel to desired color */ int ltexturesImageAlphaClear( 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_ImageAlphaClear( Image image, Color color, float threshold )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageAlphaClear( Image image, Color color, float threshold )" ); lua_pushboolean( L, false ); return 1; } @@ -712,7 +712,7 @@ int ltexturesImageAlphaClear( lua_State *L ) { } /* -> success = RL_ImageAlphaMask( Image image, Image alphaMask ) +> success = RL.ImageAlphaMask( Image image, Image alphaMask ) Apply alpha mask to image @@ -721,7 +721,7 @@ Apply alpha mask to image */ int ltexturesImageAlphaMask( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageAlphaMask( Image image, Image alphaMask )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageAlphaMask( Image image, Image alphaMask )" ); lua_pushboolean( L, false ); return 1; } @@ -740,7 +740,7 @@ int ltexturesImageAlphaMask( lua_State *L ) { } /* -> success = RL_ImageAlphaPremultiply( Image image ) +> success = RL.ImageAlphaPremultiply( Image image ) Premultiply alpha channel @@ -749,7 +749,7 @@ Premultiply alpha channel */ int ltexturesImageAlphaPremultiply( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageAlphaPremultiply( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageAlphaPremultiply( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -766,7 +766,7 @@ int ltexturesImageAlphaPremultiply( lua_State *L ) { } /* -> success = RL_ImageResize( Image image, Vector2 size ) +> success = RL.ImageResize( Image image, Vector2 size ) Resize image ( Bicubic scaling algorithm ) @@ -775,7 +775,7 @@ Resize image ( Bicubic scaling algorithm ) */ int ltexturesImageResize( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageResize( Image image, Vector2 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageResize( Image image, Vector2 size )" ); lua_pushboolean( L, false ); return 1; } @@ -794,7 +794,7 @@ int ltexturesImageResize( lua_State *L ) { } /* -> success = RL_ImageResizeNN( Image image, Vector2 size ) +> success = RL.ImageResizeNN( Image image, Vector2 size ) Resize image ( Nearest-Neighbor scaling algorithm ) @@ -803,7 +803,7 @@ Resize image ( Nearest-Neighbor scaling algorithm ) */ int ltexturesImageResizeNN( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageResizeNN( Image image, Vector2 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageResizeNN( Image image, Vector2 size )" ); lua_pushboolean( L, false ); return 1; } @@ -822,7 +822,7 @@ int ltexturesImageResizeNN( lua_State *L ) { } /* -> success = RL_ImageResizeCanvas( Image image, Vector2 size, Vector2 offset, Color fill ) +> success = RL.ImageResizeCanvas( Image image, Vector2 size, Vector2 offset, Color fill ) Resize canvas and fill with color @@ -831,7 +831,7 @@ Resize canvas and fill with color */ int ltexturesImageResizeCanvas( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageResizeCanvas( Image image, Vector2 size, Vector2 offset, Color fill )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageResizeCanvas( Image image, Vector2 size, Vector2 offset, Color fill )" ); lua_pushboolean( L, false ); return 1; } @@ -854,7 +854,7 @@ int ltexturesImageResizeCanvas( lua_State *L ) { } /* -> success = RL_ImageMipmaps( Image image ) +> success = RL.ImageMipmaps( Image image ) Generate all mipmap levels for a provided image @@ -863,7 +863,7 @@ Generate all mipmap levels for a provided image */ int ltexturesImageMipmaps( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageMipmaps( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageMipmaps( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -880,7 +880,7 @@ int ltexturesImageMipmaps( lua_State *L ) { } /* -> success = RL_ImageDither( Image image, Color bpp ) +> success = RL.ImageDither( Image image, Color bpp ) Dither image data to 16bpp or lower ( Floyd-Steinberg dithering ) @@ -889,7 +889,7 @@ Dither image data to 16bpp or lower ( Floyd-Steinberg dithering ) */ int ltexturesImageDither( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageDither( Image image, Color bpp )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDither( Image image, Color bpp )" ); lua_pushboolean( L, false ); return 1; } @@ -908,7 +908,7 @@ int ltexturesImageDither( lua_State *L ) { } /* -> success = RL_ImageFlipVertical( Image image ) +> success = RL.ImageFlipVertical( Image image ) Flip image vertically @@ -917,7 +917,7 @@ Flip image vertically */ int ltexturesImageFlipVertical( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageFlipVertical( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageFlipVertical( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -934,7 +934,7 @@ int ltexturesImageFlipVertical( lua_State *L ) { } /* -> success = RL_ImageFlipHorizontal( Image image ) +> success = RL.ImageFlipHorizontal( Image image ) Flip image horizontally @@ -943,7 +943,7 @@ Flip image horizontally */ int ltexturesImageFlipHorizontal( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageFlipHorizontal( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageFlipHorizontal( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -960,7 +960,7 @@ int ltexturesImageFlipHorizontal( lua_State *L ) { } /* -> success = RL_ImageRotateCW( Image image ) +> success = RL.ImageRotateCW( Image image ) Rotate image clockwise 90deg @@ -969,7 +969,7 @@ Rotate image clockwise 90deg */ int ltexturesImageRotateCW( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageRotateCW( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageRotateCW( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -986,7 +986,7 @@ int ltexturesImageRotateCW( lua_State *L ) { } /* -> success = RL_ImageRotateCCW( Image image ) +> success = RL.ImageRotateCCW( Image image ) Rotate image counter-clockwise 90deg @@ -995,7 +995,7 @@ Rotate image counter-clockwise 90deg */ int ltexturesImageRotateCCW( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageRotateCCW( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageRotateCCW( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -1012,7 +1012,7 @@ int ltexturesImageRotateCCW( lua_State *L ) { } /* -> success = RL_ImageColorTint( Image image, Color color ) +> success = RL.ImageColorTint( Image image, Color color ) Modify image color: tint @@ -1021,7 +1021,7 @@ Modify image color: tint */ int ltexturesImageColorTint( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageColorTint( Image image, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageColorTint( Image image, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1040,7 +1040,7 @@ int ltexturesImageColorTint( lua_State *L ) { } /* -> success = RL_ImageColorInvert( Image image ) +> success = RL.ImageColorInvert( Image image ) Modify image color: invert @@ -1049,7 +1049,7 @@ Modify image color: invert */ int ltexturesImageColorInvert( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageColorInvert( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageColorInvert( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -1066,7 +1066,7 @@ int ltexturesImageColorInvert( lua_State *L ) { } /* -> success = RL_ImageColorGrayscale( Image image ) +> success = RL.ImageColorGrayscale( Image image ) Modify image color: grayscale @@ -1075,7 +1075,7 @@ Modify image color: grayscale */ int ltexturesImageColorGrayscale( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageColorGrayscale( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageColorGrayscale( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -1092,7 +1092,7 @@ int ltexturesImageColorGrayscale( lua_State *L ) { } /* -> success = RL_ImageColorContrast( Image image, float contrast ) +> success = RL.ImageColorContrast( Image image, float contrast ) Modify image color: contrast ( -100 to 100 ) @@ -1101,7 +1101,7 @@ Modify image color: contrast ( -100 to 100 ) */ int ltexturesImageColorContrast( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageColorContrast( Image image, float contrast )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageColorContrast( Image image, float contrast )" ); lua_pushboolean( L, false ); return 1; } @@ -1120,7 +1120,7 @@ int ltexturesImageColorContrast( lua_State *L ) { } /* -> success = RL_ImageColorBrightness( Image image, int brightness ) +> success = RL.ImageColorBrightness( Image image, int brightness ) Modify image color: brightness ( -255 to 255 ) @@ -1129,7 +1129,7 @@ Modify image color: brightness ( -255 to 255 ) */ int ltexturesImageColorBrightness( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageColorBrightness( Image image, int brightness )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageColorBrightness( Image image, int brightness )" ); lua_pushboolean( L, false ); return 1; } @@ -1148,7 +1148,7 @@ int ltexturesImageColorBrightness( lua_State *L ) { } /* -> success = RL_ImageColorReplace( Image image, Color color, Color replace ) +> success = RL.ImageColorReplace( Image image, Color color, Color replace ) Modify image color: replace color @@ -1157,7 +1157,7 @@ Modify image color: replace color */ int ltexturesImageColorReplace( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageColorReplace( Image image, Color color, Color replace )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageColorReplace( Image image, Color color, Color replace )" ); lua_pushboolean( L, false ); return 1; } @@ -1178,7 +1178,7 @@ int ltexturesImageColorReplace( lua_State *L ) { } /* -> colors = RL_LoadImageColors( Image image ) +> colors = RL.LoadImageColors( Image image ) Load color data from image as a Color array ( RGBA - 32bit ) @@ -1187,7 +1187,7 @@ Load color data from image as a Color array ( RGBA - 32bit ) */ int ltexturesLoadImageColors( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadImageColors( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadImageColors( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -1213,7 +1213,7 @@ int ltexturesLoadImageColors( lua_State *L ) { } /* -> colors = RL_LoadImagePalette( Image image, int maxPaletteSize ) +> colors = RL.LoadImagePalette( Image image, int maxPaletteSize ) Load colors palette from image as a Color array ( RGBA - 32bit ) @@ -1222,7 +1222,7 @@ Load colors palette from image as a Color array ( RGBA - 32bit ) */ int ltexturesLoadImagePalette( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadImagePalette( Image image, int maxPaletteSize )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadImagePalette( Image image, int maxPaletteSize )" ); lua_pushboolean( L, false ); return 1; } @@ -1250,7 +1250,7 @@ int ltexturesLoadImagePalette( lua_State *L ) { } /* -> rectangle = RL_GetImageAlphaBorder( Image image, float threshold ) +> rectangle = RL.GetImageAlphaBorder( Image image, float threshold ) Get image alpha border rectangle @@ -1259,7 +1259,7 @@ Get image alpha border rectangle */ int ltexturesGetImageAlphaBorder( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetImageAlphaBorder( Image image, float threshold )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetImageAlphaBorder( Image image, float threshold )" ); lua_pushboolean( L, false ); return 1; } @@ -1277,7 +1277,7 @@ int ltexturesGetImageAlphaBorder( lua_State *L ) { } /* -> color = RL_GetImageColor( Image image, Vector2 pixelPos ) +> color = RL.GetImageColor( Image image, Vector2 pixelPos ) Get image pixel color at ( x, y ) position @@ -1286,7 +1286,7 @@ Get image pixel color at ( x, y ) position */ int ltexturesGetImageColor( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetImageColor( Image image, Vector2 pixelPos )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetImageColor( Image image, Vector2 pixelPos )" ); lua_pushboolean( L, false ); return 1; } @@ -1308,7 +1308,7 @@ int ltexturesGetImageColor( lua_State *L ) { */ /* -> success = RL_ImageClearBackground( Image dst, Color color ) +> success = RL.ImageClearBackground( Image dst, Color color ) Clear image background with given color @@ -1317,7 +1317,7 @@ Clear image background with given color */ int ltexturesImageClearBackground( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageClearBackground( Image dst, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageClearBackground( Image dst, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1337,7 +1337,7 @@ int ltexturesImageClearBackground( lua_State *L ) { } /* -> success = RL_ImageDrawPixel( Image dst, Vector2 position, Color color ) +> success = RL.ImageDrawPixel( Image dst, Vector2 position, Color color ) Draw pixel within an image @@ -1346,7 +1346,7 @@ Draw pixel within an image */ int ltexturesImageDrawPixel( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageDrawPixel( Image dst, Vector2 position, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDrawPixel( Image dst, Vector2 position, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1368,7 +1368,7 @@ int ltexturesImageDrawPixel( lua_State *L ) { } /* -> success = RL_ImageDrawLine( Image dst, Vector2 start, Vector2 end, Color color ) +> success = RL.ImageDrawLine( Image dst, Vector2 start, Vector2 end, Color color ) Draw line within an image @@ -1377,7 +1377,7 @@ Draw line within an image */ int ltexturesImageDrawLine( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageDrawLine( Image dst, Vector2 start, Vector2 end, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDrawLine( Image dst, Vector2 start, Vector2 end, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1401,7 +1401,7 @@ int ltexturesImageDrawLine( lua_State *L ) { } /* -> success = RL_ImageDrawCircle( Image dst, Vector2 center, int radius, Color color ) +> success = RL.ImageDrawCircle( Image dst, Vector2 center, int radius, Color color ) Draw circle within an image @@ -1410,7 +1410,7 @@ Draw circle within an image */ int ltexturesImageDrawCircle( 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_ImageDrawCircle( Image dst, Vector2 center, int radius, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDrawCircle( Image dst, Vector2 center, int radius, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1434,7 +1434,7 @@ int ltexturesImageDrawCircle( lua_State *L ) { } /* -> success = RL_ImageDrawRectangle( Image dst, Rectangle rec, Color color ) +> success = RL.ImageDrawRectangle( Image dst, Rectangle rec, Color color ) Draw rectangle within an image @@ -1443,7 +1443,7 @@ Draw rectangle within an image */ int ltexturesImageDrawRectangle( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageDrawRectangle( Image dst, Rectangle rec, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDrawRectangle( Image dst, Rectangle rec, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1465,7 +1465,7 @@ int ltexturesImageDrawRectangle( lua_State *L ) { } /* -> success = RL_DrawRectangleLines( Image dst, Rectangle rec, int thick, Color color ) +> success = RL.ImageDrawRectangleLines( Image dst, Rectangle rec, int thick, Color color ) Draw rectangle lines within an image @@ -1474,7 +1474,7 @@ Draw rectangle lines within an image */ int ltexturesImageDrawRectangleLines( 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_DrawRectangleLines( Image dst, Rectangle rec, int thick, Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDrawRectangleLines( Image dst, Rectangle rec, int thick, Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -1498,7 +1498,7 @@ int ltexturesImageDrawRectangleLines( lua_State *L ) { } /* -> success = RL_ImageDraw( Image dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint ) +> success = RL.ImageDraw( Image dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint ) Draw a source image within a destination image ( Tint applied to source ) @@ -1507,7 +1507,7 @@ Draw a source image within a destination image ( Tint applied to source ) */ int ltexturesImageDraw( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ImageDraw( Image dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDraw( Image dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -1533,7 +1533,7 @@ int ltexturesImageDraw( lua_State *L ) { } /* -> success = RL_ImageDrawTextEx( Image dst, Font font, string text, Vector2 position, float fontSize, float spacing, Color tint ) +> success = RL.ImageDrawTextEx( Image dst, Font font, string text, Vector2 position, float fontSize, float spacing, Color tint ) Draw text ( Custom sprite font ) within an image ( Destination ) @@ -1543,7 +1543,7 @@ Draw text ( Custom sprite font ) within an image ( Destination ) int ltexturesImageDrawTextEx( lua_State *L ) { if ( !lua_isnumber( L, -7 ) || !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_ImageDrawTextEx( Image dst, Font font, string text, Vector2 position, float fontSize, float spacing, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ImageDrawTextEx( Image dst, Font font, string text, Vector2 position, float fontSize, float spacing, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -1574,7 +1574,7 @@ int ltexturesImageDrawTextEx( lua_State *L ) { */ /* -> size = RL_GetImageSize( Image image ) +> size = RL.GetImageSize( Image image ) Get image size @@ -1583,7 +1583,7 @@ Get image size */ int ltexturesGetImageSize( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetImageSize( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetImageSize( Image image )" ); lua_pushnil( L ); return 1; } @@ -1601,7 +1601,7 @@ int ltexturesGetImageSize( lua_State *L ) { } /* -> mipmaps = RL_GetImageMipmaps( Image image ) +> mipmaps = RL.GetImageMipmaps( Image image ) Get image mipmaps. Mipmap levels, 1 by default @@ -1610,7 +1610,7 @@ Get image mipmaps. Mipmap levels, 1 by default */ int ltexturesGetImageMipmaps( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetImageMipmaps( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetImageMipmaps( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -1626,7 +1626,7 @@ int ltexturesGetImageMipmaps( lua_State *L ) { } /* -> format = RL_GetImageFormat( Image image ) +> format = RL.GetImageFormat( Image image ) Get image data format ( PixelFormat type ) @@ -1635,7 +1635,7 @@ Get image data format ( PixelFormat type ) */ int ltexturesGetImageFormat( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetImageFormat( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetImageFormat( Image image )" ); lua_pushboolean( L, false ); return 1; } @@ -1655,7 +1655,7 @@ int ltexturesGetImageFormat( lua_State *L ) { */ /* -> texture = RL_LoadTexture( string fileName ) +> texture = RL.LoadTexture( string fileName ) Load texture from file into GPU memory ( VRAM ) @@ -1664,7 +1664,7 @@ Load texture from file into GPU memory ( VRAM ) */ int ltexturesLoadTexture( lua_State *L ) { if ( !lua_isstring( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadTexture( string fileName )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadTexture( string fileName )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1682,7 +1682,7 @@ int ltexturesLoadTexture( lua_State *L ) { } /* -> texture = RL_LoadTextureFromImage( Image image ) +> texture = RL.LoadTextureFromImage( Image image ) Load texture from image data @@ -1691,7 +1691,7 @@ Load texture from image data */ int ltexturesLoadTextureFromImage( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadTextureFromImage( Image image )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadTextureFromImage( Image image )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1709,7 +1709,7 @@ int ltexturesLoadTextureFromImage( lua_State *L ) { } /* -> texture = RL_LoadTextureCubemap( Image image, int layout ) +> texture = RL.LoadTextureCubemap( Image image, int layout ) Load cubemap from image, multiple image cubemap layouts supported @@ -1718,7 +1718,7 @@ Load cubemap from image, multiple image cubemap layouts supported */ int ltexturesLoadTextureCubemap( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadTextureCubemap( Image image, int layout )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadTextureCubemap( Image image, int layout )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1737,7 +1737,7 @@ int ltexturesLoadTextureCubemap( lua_State *L ) { } /* -> renderTexture = RL_LoadRenderTexture( Vector2 size ) +> renderTexture = RL.LoadRenderTexture( Vector2 size ) Load texture for rendering ( framebuffer ) @@ -1746,7 +1746,7 @@ Load texture for rendering ( framebuffer ) */ int ltexturesLoadRenderTexture( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_LoadRenderTexture( Vector2 size )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.LoadRenderTexture( Vector2 size )" ); lua_pushinteger( L, -1 ); return 1; } @@ -1767,7 +1767,7 @@ int ltexturesLoadRenderTexture( lua_State *L ) { } /* -> success = RL_UnloadTexture( Texture2D texture ) +> success = RL.UnloadTexture( Texture2D texture ) Unload texture from GPU memory ( VRAM ) @@ -1776,7 +1776,7 @@ Unload texture from GPU memory ( VRAM ) */ int ltexturesUnloadTexture( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadTexture( Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadTexture( Texture2D texture )" ); lua_pushboolean( L, false ); return 1; } @@ -1794,7 +1794,7 @@ int ltexturesUnloadTexture( lua_State *L ) { } /* -> success = RL_UnloadRenderTexture( RenderTexture2D target ) +> success = RL.UnloadRenderTexture( RenderTexture2D target ) Unload render texture from GPU memory ( VRAM ) @@ -1803,7 +1803,7 @@ Unload render texture from GPU memory ( VRAM ) */ int ltexturesUnloadRenderTexture( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UnloadRenderTexture( RenderTexture2D target )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UnloadRenderTexture( RenderTexture2D target )" ); lua_pushboolean( L, false ); return 1; } @@ -1821,7 +1821,7 @@ int ltexturesUnloadRenderTexture( lua_State *L ) { } /* -> success = RL_UpdateTexture( Texture2D texture, int pixels{ {} } ) +> success = RL.UpdateTexture( Texture2D texture, int{} pixels ) Update GPU texture with new data NOTE! Should be TEXTURE_SOURCE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format @@ -1831,7 +1831,7 @@ NOTE! Should be TEXTURE_SOURCE_TEXTURE. Pixel should be in format { { 255, 255, */ int ltexturesUpdateTexture( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UpdateTexture( Texture2D texture, int pixels{ {} } )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateTexture( Texture2D texture, int{} pixels )" ); lua_pushboolean( L, false ); return 1; } @@ -1873,7 +1873,7 @@ int ltexturesUpdateTexture( lua_State *L ) { } /* -> success = RL_UpdateTextureRec( Texture2D texture, Rectangle rec, int pixels{ {} } ) +> success = RL.UpdateTextureRec( Texture2D texture, Rectangle rec, int{} pixels ) Update GPU texture rectangle with new data NOTE! Should be TEXTURE_SOURCE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format @@ -1883,7 +1883,7 @@ NOTE! Should be TEXTURE_SOURCE_TEXTURE. Pixel should be in format { { 255, 255, */ int ltexturesUpdateTextureRec( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UpdateTextureRec( Texture2D texture, Rectangle rec, int pixels{ {} } )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateTextureRec( Texture2D texture, Rectangle rec, int{} pixels )" ); lua_pushboolean( L, false ); return 1; } @@ -1933,7 +1933,7 @@ int ltexturesUpdateTextureRec( lua_State *L ) { */ /* -> success = RL_DrawTexture( Texture2D texture, Vector2 position, Color tint ) +> success = RL.DrawTexture( Texture2D texture, Vector2 position, Color tint ) Draw a Texture2D @@ -1942,7 +1942,7 @@ Draw a Texture2D */ int ltexturesDrawTexture( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTexture( Texture2D texture, Vector2 position, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTexture( Texture2D texture, Vector2 position, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -1964,7 +1964,7 @@ int ltexturesDrawTexture( lua_State *L ) { } /* -> success = RL_DrawTextureRec( Texture2D texture, Rectangle source, Vector2 position, Color tint ) +> success = RL.DrawTextureRec( Texture2D texture, Rectangle source, Vector2 position, Color tint ) Draw a part of a texture defined by a rectangle @@ -1973,7 +1973,7 @@ Draw a part of a texture defined by a rectangle */ int ltexturesDrawTextureRec( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawTextureRec( Texture2D texture, Rectangle source, Vector2 position, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTextureRec( Texture2D texture, Rectangle source, Vector2 position, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -1997,7 +1997,7 @@ int ltexturesDrawTextureRec( lua_State *L ) { } /* -> success = RL_DrawTextureTiled( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint ) +> success = RL.DrawTextureTiled( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint ) Draw part of a texture ( defined by a rectangle ) with rotation and scale tiled into dest @@ -2007,7 +2007,7 @@ Draw part of a texture ( defined by a rectangle ) with rotation and scale tiled int ltexturesDrawTextureTiled( lua_State *L ) { if ( !lua_isnumber( L, -7 ) || !lua_istable( L, -6 ) || !lua_istable( 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_DrawTextureTiled( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTextureTiled( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2037,7 +2037,7 @@ int ltexturesDrawTextureTiled( lua_State *L ) { } /* -> success = RL_DrawTexturePro( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint ) +> success = RL.DrawTexturePro( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint ) Draw a part of a texture defined by a rectangle with "pro" parameters @@ -2047,7 +2047,7 @@ Draw a part of a texture defined by a rectangle with "pro" parameters int ltexturesDrawTexturePro( lua_State *L ) { if ( !lua_isnumber( 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_DrawTexturePro( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTexturePro( Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2075,7 +2075,7 @@ int ltexturesDrawTexturePro( lua_State *L ) { } /* -> success = RL_DrawTextureNPatch( Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint ) +> success = RL.DrawTextureNPatch( Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint ) Draws a texture ( or part of it ) that stretches or shrinks nicely @@ -2085,7 +2085,7 @@ Draws a texture ( or part of it ) that stretches or shrinks nicely int ltexturesDrawTextureNPatch( lua_State *L ) { if ( !lua_isnumber( 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_DrawTextureNPatch( Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTextureNPatch( Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2113,7 +2113,7 @@ int ltexturesDrawTextureNPatch( lua_State *L ) { } /* -> success = RL_DrawTexturePoly( Texture2D texture, Vector2 center, Vector2{} points, Vector2{} texcoords, int pointsCount, Color tint ) +> success = RL.DrawTexturePoly( Texture2D texture, Vector2 center, Vector2{} points, Vector2{} texcoords, int pointsCount, Color tint ) Draw a textured polygon ( Convex ) @@ -2123,7 +2123,7 @@ Draw a textured polygon ( Convex ) int ltexturesDrawTexturePoly( lua_State *L ) { if ( !lua_isnumber( 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_DrawTexturePoly( Texture2D texture, Vector2 center, Vector2 points{}, Vector2 texcoords{}, int pointsCount, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.DrawTexturePoly( Texture2D texture, Vector2 center, Vector2 points{}, Vector2 texcoords{}, int pointsCount, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2171,7 +2171,7 @@ int ltexturesDrawTexturePoly( lua_State *L ) { } /* -> success = RL_BeginTextureMode( RenderTexture2D target ) +> success = RL.BeginTextureMode( RenderTexture2D target ) Begin drawing to render texture @@ -2180,7 +2180,7 @@ Begin drawing to render texture */ int ltexturesBeginTextureMode( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_BeginTextureMode( RenderTexture2D target )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.BeginTextureMode( RenderTexture2D target )" ); lua_pushboolean( L, false ); return 1; } @@ -2198,7 +2198,7 @@ int ltexturesBeginTextureMode( lua_State *L ) { } /* -> RL_EndTextureMode() +> RL.EndTextureMode() Ends drawing to render texture */ @@ -2209,7 +2209,7 @@ int ltexturesEndTextureMode( lua_State *L ) { } /* -> success = RL_SetTextureSource( int textureSource ) +> success = RL.SetTextureSource( int textureSource ) Set what texture source to use ( TEXTURE_SOURCE_TEXTURE or TEXTURE_SOURCE_RENDER_TEXTURE ) @@ -2218,7 +2218,7 @@ Set what texture source to use ( TEXTURE_SOURCE_TEXTURE or TEXTURE_SOURCE_RENDER */ int ltexturesSetTextureSource( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetTextureSource( int textureSource )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetTextureSource( int textureSource )" ); lua_pushboolean( L, false ); return 1; } @@ -2237,7 +2237,7 @@ int ltexturesSetTextureSource( lua_State *L ) { } /* -> textureSource = RL_GetTextureSource() +> textureSource = RL.GetTextureSource() Get current texture source type ( TEXTURE_SOURCE_TEXTURE or TEXTURE_SOURCE_RENDER_TEXTURE ) @@ -2254,7 +2254,7 @@ int ltexturesGetTextureSource( lua_State *L ) { */ /* -> success = RL_GenTextureMipmaps( Texture2D texture ) +> success = RL.GenTextureMipmaps( Texture2D texture ) Generate GPU mipmaps for a texture @@ -2263,7 +2263,7 @@ Generate GPU mipmaps for a texture */ int ltexturesGenTextureMipmaps( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GenTextureMipmaps( Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GenTextureMipmaps( Texture2D texture )" ); lua_pushboolean( L, false ); return 1; } @@ -2282,7 +2282,7 @@ int ltexturesGenTextureMipmaps( lua_State *L ) { } /* -> success = RL_SetTextureFilter( Texture2D texture, int filter ) +> success = RL.SetTextureFilter( Texture2D texture, int filter ) Set texture scaling filter mode ( TEXTURE_FILTER_POINT, TEXTURE_FILTER_BILINEAR... ) @@ -2291,7 +2291,7 @@ Set texture scaling filter mode ( TEXTURE_FILTER_POINT, TEXTURE_FILTER_BILINEAR. */ int ltexturesSetTextureFilter( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetTextureFilter( Texture2D texture, int filter )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetTextureFilter( Texture2D texture, int filter )" ); lua_pushboolean( L, false ); return 1; } @@ -2310,7 +2310,7 @@ int ltexturesSetTextureFilter( lua_State *L ) { } /* -> success = RL_SetTextureWrap( Texture2D texture, int wrap ) +> success = RL.SetTextureWrap( Texture2D texture, int wrap ) Set texture wrapping mode ( TEXTURE_WRAP_REPEAT, TEXTURE_WRAP_CLAMP... ) @@ -2319,7 +2319,7 @@ Set texture wrapping mode ( TEXTURE_WRAP_REPEAT, TEXTURE_WRAP_CLAMP... ) */ int ltexturesSetTextureWrap( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_SetTextureWrap( Texture2D texture, int wrap )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetTextureWrap( Texture2D texture, int wrap )" ); lua_pushboolean( L, false ); return 1; } @@ -2339,7 +2339,7 @@ int ltexturesSetTextureWrap( lua_State *L ) { } /* -> size = RL_GetTextureSize( Texture2D texture ) +> size = RL.GetTextureSize( Texture2D texture ) Get texture size @@ -2348,7 +2348,7 @@ Get texture size */ int ltexturesGetTextureSize( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetTextureSize( Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetTextureSize( Texture2D texture )" ); lua_pushnil( L ); return 1; } @@ -2365,7 +2365,7 @@ int ltexturesGetTextureSize( lua_State *L ) { } /* -> mipmaps = RL_GetTextureMipmaps( Texture2D texture ) +> mipmaps = RL.GetTextureMipmaps( Texture2D texture ) Get texture mipmaps. Mipmap levels, 1 by default @@ -2374,7 +2374,7 @@ Get texture mipmaps. Mipmap levels, 1 by default */ int ltexturesGetTextureMipmaps( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetTextureMipmaps( Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetTextureMipmaps( Texture2D texture )" ); lua_pushboolean( L, false ); return 1; } @@ -2391,7 +2391,7 @@ int ltexturesGetTextureMipmaps( lua_State *L ) { } /* -> format = RL_GetTextureFormat( Texture2D texture ) +> format = RL.GetTextureFormat( Texture2D texture ) Get texture mipmaps. Mipmap levels, 1 by default @@ -2400,7 +2400,7 @@ Get texture mipmaps. Mipmap levels, 1 by default */ int ltexturesGetTextureFormat( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetTextureFormat( Texture2D texture )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetTextureFormat( Texture2D texture )" ); lua_pushboolean( L, false ); return 1; } @@ -2421,7 +2421,7 @@ int ltexturesGetTextureFormat( lua_State *L ) { */ /* -> color = RL_Fade( Color color, float alpha ) +> color = RL.Fade( Color color, float alpha ) Returns color with alpha applied, alpha goes from 0.0f to 1.0f @@ -2430,7 +2430,7 @@ Returns color with alpha applied, alpha goes from 0.0f to 1.0f */ int ltexturesFade( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Fade( Color color, float alpha )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Fade( Color color, float alpha )" ); lua_pushboolean( L, false ); return 1; } @@ -2444,7 +2444,7 @@ int ltexturesFade( lua_State *L ) { } /* -> value = RL_ColorToInt( Color color ) +> value = RL.ColorToInt( Color color ) Returns hexadecimal value for a Color @@ -2453,7 +2453,7 @@ Returns hexadecimal value for a Color */ int ltexturesColorToInt( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ColorToInt( Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorToInt( Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -2465,7 +2465,7 @@ int ltexturesColorToInt( lua_State *L ) { } /* -> color = RL_ColorNormalize( Color color ) +> color = RL.ColorNormalize( Color color ) Returns Color normalized as float [0..1] @@ -2474,7 +2474,7 @@ Returns Color normalized as float [0..1] */ int ltexturesColorNormalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ColorNormalize( Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorNormalize( Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -2486,7 +2486,7 @@ int ltexturesColorNormalize( lua_State *L ) { } /* -> color = RL_ColorFromNormalized( Vector4 normalized ) +> color = RL.ColorFromNormalized( Vector4 normalized ) Color from normalized values [0..1] @@ -2495,7 +2495,7 @@ Color from normalized values [0..1] */ int ltexturesColorFromNormalized( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ColorFromNormalized( Vector4 normalized )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorFromNormalized( Vector4 normalized )" ); lua_pushboolean( L, false ); return 1; } @@ -2507,7 +2507,7 @@ int ltexturesColorFromNormalized( lua_State *L ) { } /* -> HSV = RL_ColorToHSV( Color color ) +> HSV = RL.ColorToHSV( Color color ) Returns HSV values for a Color, hue [0..360], saturation/value [0..1] @@ -2516,7 +2516,7 @@ Returns HSV values for a Color, hue [0..360], saturation/value [0..1] */ int ltexturesColorToHSV( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ColorToHSV( Color color )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorToHSV( Color color )" ); lua_pushboolean( L, false ); return 1; } @@ -2528,7 +2528,7 @@ int ltexturesColorToHSV( lua_State *L ) { } /* -> color = RL_ColorFromHSV( float hue, float saturation, float value ) +> color = RL.ColorFromHSV( float hue, float saturation, float value ) Returns a Color from HSV values, hue [0..360], saturation/value [0..1] @@ -2537,7 +2537,7 @@ Returns a Color from HSV values, hue [0..360], saturation/value [0..1] */ int ltexturesColorFromHSV( 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_ColorFromHSV( float hue, float saturation, float value )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorFromHSV( float hue, float saturation, float value )" ); lua_pushboolean( L, false ); return 1; } @@ -2547,7 +2547,7 @@ int ltexturesColorFromHSV( lua_State *L ) { } /* -> color = RL_ColorAlpha( Color color, float alpha ) +> color = RL.ColorAlpha( Color color, float alpha ) Returns color with alpha applied, alpha goes from 0.0f to 1.0f @@ -2556,7 +2556,7 @@ Returns color with alpha applied, alpha goes from 0.0f to 1.0f */ int ltexturesColorAlpha( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_ColorAlpha( Color color, float alpha )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorAlpha( Color color, float alpha )" ); lua_pushboolean( L, false ); return 1; } @@ -2570,7 +2570,7 @@ int ltexturesColorAlpha( lua_State *L ) { } /* -> color = RL_ColorAlphaBlend( Color dst, Color src, Color tint ) +> color = RL.ColorAlphaBlend( Color dst, Color src, Color tint ) Returns src alpha-blended into dst color with tint @@ -2579,7 +2579,7 @@ Returns src alpha-blended into dst color with tint */ int ltexturesColorAlphaBlend( 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_ColorAlphaBlend( Color dst, Color src, Color tint )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.ColorAlphaBlend( Color dst, Color src, Color tint )" ); lua_pushboolean( L, false ); return 1; } @@ -2595,7 +2595,7 @@ int ltexturesColorAlphaBlend( lua_State *L ) { } /* -> Color = RL_GetColor( unsigned int hexValue ) +> Color = RL.GetColor( unsigned int hexValue ) Get Color structure from hexadecimal value @@ -2604,7 +2604,7 @@ Get Color structure from hexadecimal value */ int ltexturesGetColor( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetColor( unsigned int hexValue )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetColor( unsigned int hexValue )" ); lua_pushboolean( L, false ); return 1; } @@ -2614,7 +2614,7 @@ int ltexturesGetColor( lua_State *L ) { } /* -> Color = RL_GetPixelColor( Texture2D texture, Vector2 position ) +> Color = RL.GetPixelColor( Texture2D texture, Vector2 position ) Get pixel color from source texture @@ -2623,7 +2623,7 @@ Get pixel color from source texture */ int ltexturesGetPixelColor( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetPixelColor( Texture2D texture, Vector2 position )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetPixelColor( Texture2D texture, Vector2 position )" ); lua_pushboolean( L, false ); return 1; } @@ -2645,7 +2645,7 @@ int ltexturesGetPixelColor( lua_State *L ) { } /* -> size = RL_GetPixelDataSize( int width, int height, int format ) +> size = RL.GetPixelDataSize( int width, int height, int format ) Get pixel data size in bytes for certain format @@ -2654,7 +2654,7 @@ Get pixel data size in bytes for certain format */ int ltexturesGetPixelDataSize( 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_GetPixelDataSize( int width, int height, int format )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.GetPixelDataSize( int width, int height, int format )" ); lua_pushboolean( L, false ); return 1; } -- cgit v1.2.3