summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorjussi2023-04-06 12:31:37 +0300
committerjussi2023-04-06 12:31:37 +0300
commit2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a (patch)
tree825775577403d9341045571adb266173513c4bbd /src/text.c
parent198a74c0aa27389c062c47bc29187c58a9d6c4a1 (diff)
downloadreilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.tar.gz
reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.tar.bz2
reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.zip
All global variables and functions are not in global RL table. doc_parser creates also ReiLua_API.lua.
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c44
1 files changed, 22 insertions, 22 deletions
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;
}