summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2022-03-10 17:53:43 +0200
committerjussi2022-03-10 17:53:43 +0200
commit26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a (patch)
treeb6fc68889bf5df58ba3455e6d64da6b2f78d38de /API.md
parentdebe4baa8c208458f847dd4c89c17f7cc39be559 (diff)
downloadreilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.tar.gz
reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.tar.bz2
reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.zip
Measure text.
Diffstat (limited to 'API.md')
-rw-r--r--API.md30
1 files changed, 29 insertions, 1 deletions
diff --git a/API.md b/API.md
index 434ab4b..58a2171 100644
--- a/API.md
+++ b/API.md
@@ -641,6 +641,12 @@ Set title for window ( Only PLATFORM_DESKTOP )
---
+> RL_lcoreCloseWindow()
+
+Close window and unload OpenGL context and free all resources
+
+---
+
## Core - Timing
---
@@ -1975,6 +1981,15 @@ Load font from file into GPU memory ( VRAM )
---
+> font = RL_LoadFontFromImage( Image image, Color key, int firstChar )
+
+Load font from Image ( XNA style )
+
+- Failure return -1
+- Success return int
+
+---
+
> success = RL_UnloadFont( Font font )
Unload Font from GPU memory ( VRAM )
@@ -2006,7 +2021,7 @@ Draw text using font and additional parameters
---
-> success = RL_DrawTextPro( Font font, const char 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 )
@@ -2015,6 +2030,19 @@ Draw text using Font and pro parameters ( rotation )
---
+## Text - Misc
+
+---
+
+> size = RL_MeasureText( Font font, string text, float fontSize, float spacing )
+
+Measure string size for Font
+
+- Failure return false
+- Success return Vector2
+
+---
+
## Models - Basic
---