summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2023-11-01 23:36:31 +0200
committerjussi2023-11-01 23:36:31 +0200
commite61823b8bb69e258370503df7969e4e3c2089e2d (patch)
treead05d732eb01fbfe584e403ca1d7a9c885bf1a5c /API.md
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 'API.md')
-rw-r--r--API.md22
1 files changed, 19 insertions, 3 deletions
diff --git a/API.md b/API.md
index f338559..8d22ee1 100644
--- a/API.md
+++ b/API.md
@@ -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
---