New argument style for rlgl, text, lights and math.

This commit is contained in:
jussi
2023-04-09 22:19:47 +03:00
parent 6dad6544d7
commit f4ae19ca7d
6 changed files with 433 additions and 515 deletions

View File

@@ -16,12 +16,12 @@ Set the line drawing width
- Success return true
*/
int lrlglSetLineWidth( lua_State *L ) {
if ( !lua_isnumber( L, -1 ) ) {
if ( !lua_isnumber( L, 1 ) ) {
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.rlSetLineWidth( float width )" );
lua_pushboolean( L, false );
return 1;
}
rlSetLineWidth( lua_tonumber( L, -1 ) );
rlSetLineWidth( lua_tonumber( L, 1 ) );
lua_pushboolean( L, true );
return 1;