FontCopy.

This commit is contained in:
jussi
2024-09-26 23:02:13 +03:00
parent 45e11be96a
commit d3202073a7
9 changed files with 43 additions and 10 deletions

View File

@@ -279,6 +279,21 @@ int ltextLoadFontFromData( lua_State* L ) {
return 1;
}
/*
> font = RL.FontCopy( Font font )
Load font copy as new userdata
- Success return Font
*/
int ltextFontCopy( lua_State* L ) {
Font* font = uluaGetFont( L, 1 );
uluaPushFont( L, *font );
return 1;
}
/*
> isReady = RL.IsFontReady( Font font )