diff options
| author | jussi | 2023-11-01 23:36:31 +0200 |
|---|---|---|
| committer | jussi | 2023-11-01 23:36:31 +0200 |
| commit | e61823b8bb69e258370503df7969e4e3c2089e2d (patch) | |
| tree | ad05d732eb01fbfe584e403ca1d7a9c885bf1a5c /src/lua_core.c | |
| parent | dfd66512d7d8caf5d75bfaec167cb81b9bd0b26f (diff) | |
| download | reilua-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.c | 6 |
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 ); |
