summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
authorjussi2023-11-01 23:36:31 +0200
committerjussi2023-11-01 23:36:31 +0200
commite61823b8bb69e258370503df7969e4e3c2089e2d (patch)
treead05d732eb01fbfe584e403ca1d7a9c885bf1a5c /src/lua_core.c
parentdfd66512d7d8caf5d75bfaec167cb81b9bd0b26f (diff)
downloadreilua-enhanced-e61823b8bb69e258370503df7969e4e3c2089e2d.tar.gz
reilua-enhanced-e61823b8bb69e258370503df7969e4e3c2089e2d.tar.bz2
reilua-enhanced-e61823b8bb69e258370503df7969e4e3c2089e2d.zip
LoadFontEx fix. DrawTextBoxed and DrawTextBoxedSelectable From raylib [text] example - Rectangle bounds.
Diffstat (limited to 'src/lua_core.c')
-rw-r--r--src/lua_core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua_core.c b/src/lua_core.c
index b07034c..499f2a2 100644
--- a/src/lua_core.c
+++ b/src/lua_core.c
@@ -774,8 +774,8 @@ static void defineGlobals() {
assignGlobalInt( HUEBAR_SELECTOR_HEIGHT, "HUEBAR_SELECTOR_HEIGHT" ); // ColorPicker right hue bar selector height
assignGlobalInt( HUEBAR_SELECTOR_OVERFLOW, "HUEBAR_SELECTOR_OVERFLOW" ); // ColorPicker right hue bar selector overflow
/* LightType */
- assignGlobalInt( LIGHT_DIRECTIONAL, "LIGHT_DIRECTIONAL" );
- assignGlobalInt( LIGHT_POINT, "LIGHT_POINT" );
+ assignGlobalInt( LIGHT_DIRECTIONAL, "LIGHT_DIRECTIONAL" ); // Directional light
+ assignGlobalInt( LIGHT_POINT, "LIGHT_POINT" ); // Point light
/* RLGL Default internal render batch elements limits */
assignGlobalInt( RL_DEFAULT_BATCH_BUFFER_ELEMENTS, "RL_DEFAULT_BATCH_BUFFER_ELEMENTS" ); // Default internal render batch elements limits
assignGlobalInt( RL_DEFAULT_BATCH_BUFFERS, "RL_DEFAULT_BATCH_BUFFERS" ); // Default number of batch buffers (multi-buffering)
@@ -1945,6 +1945,8 @@ void luaRegister() {
assingGlobalFunction( "DrawTextPro", ltextDrawTextPro );
assingGlobalFunction( "DrawTextCodepoint", ltextDrawTextCodepoint );
assingGlobalFunction( "DrawTextCodepoints", ltextDrawTextCodepoints );
+ assingGlobalFunction( "DrawTextBoxed", ltextDrawTextBoxed );
+ assingGlobalFunction( "DrawTextBoxedSelectable", ltextDrawTextBoxedSelectable );
/* Font info functions. */
assingGlobalFunction( "MeasureText", ltextMeasureText );
assingGlobalFunction( "GetGlyphIndex", ltextGetGlyphIndex );