FontCopy.
This commit is contained in:
15
src/text.c
15
src/text.c
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user