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 /API.md | |
| 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 'API.md')
| -rw-r--r-- | API.md | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -2725,10 +2725,14 @@ ColorPicker right hue bar selector overflow ## Globals - LightType > LIGHT_DIRECTIONAL = 0 +Directional light + --- > LIGHT_POINT = 1 +Point light + --- @@ -5618,8 +5622,8 @@ NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 25 > RL.UpdateTextureRec( Texture texture, Rectangle rec, int{} pixels ) -Update GPU texture rectangle with new data -NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format +Update GPU texture rectangle with new data. +Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format --- @@ -5891,7 +5895,7 @@ Load font from file with extended parameters, use NULL for fontChars to load the > font = RL.LoadFontFromImage( Image image, Color key, int firstChar ) -Load font from Image ( XNA style) +Load font from Image (XNA style) - Success return Font @@ -5951,6 +5955,18 @@ Draw multiple character (codepoint) --- +> RL.DrawTextBoxed(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint ) + +Draw text using font inside rectangle limits. Function from raylib [text] example - Rectangle bounds + +--- + +> RL.DrawTextBoxedSelectable( Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectTint, Color selectBackTint ) + +Draw text using font inside rectangle limits with support for text selection. Function from raylib [text] example - Rectangle bounds + +--- + ## Text - Font info functions --- |
