diff options
| author | jussi | 2022-03-10 17:53:43 +0200 |
|---|---|---|
| committer | jussi | 2022-03-10 17:53:43 +0200 |
| commit | 26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a (patch) | |
| tree | b6fc68889bf5df58ba3455e6d64da6b2f78d38de /API.md | |
| parent | debe4baa8c208458f847dd4c89c17f7cc39be559 (diff) | |
| download | reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.tar.gz reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.tar.bz2 reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.zip | |
Measure text.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -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 --- |
