New raylib 5.5 functions.

This commit is contained in:
jussi
2024-11-21 00:11:31 +02:00
parent 479726a5e4
commit 4c0eb17a9c
22 changed files with 1121 additions and 187 deletions

View File

@@ -1242,3 +1242,33 @@ int ltextTextToPascal( lua_State* L ) {
return 1;
}
/*
> text = RL.TextToSnake( string text )
Get Snake case notation version of provided string
- Success return string
*/
int ltextTextToSnake( lua_State* L ) {
const char* text = luaL_checkstring( L, 1 );
lua_pushstring( L, TextToSnake( text ) );
return 1;
}
/*
> text = RL.TextToCamel( string text )
Get Camel case notation version of provided string
- Success return string
*/
int ltextTextToCamel( lua_State* L ) {
const char* text = luaL_checkstring( L, 1 );
lua_pushstring( L, TextToCamel( text ) );
return 1;
}