summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
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
---