diff options
| author | jussi | 2023-10-28 14:15:20 +0300 |
|---|---|---|
| committer | jussi | 2023-10-28 14:15:20 +0300 |
| commit | af03c7364ea0dfe2c8bb269eb8a8f9b580f39633 (patch) | |
| tree | 8ef09eefe38c890112972768c6861432028d8945 /API.md | |
| parent | 23935aefca3212c989199cd7e195c02b01ef14ae (diff) | |
| download | reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.tar.gz reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.tar.bz2 reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.zip | |
New object type Font.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 67 |
1 files changed, 23 insertions, 44 deletions
@@ -3853,39 +3853,35 @@ Get pixel data size in bytes for certain format --- -> font = RL.LoadFont( string fileName ) +> RL.GetFontDefault() -Load font from file into GPU memory ( VRAM ) - -- Failure return -1 -- Success return int +Get the default Font --- -> font = RL.LoadFontEx( string fileName, int fontSize ) +> font = RL.LoadFont( string fileName ) -Load font from file with extended parameters. Loading the default character set +Load font from file into GPU memory (VRAM) -- Failure return -1 -- Success return int +- Failure return nil +- Success return Font --- -> font = RL.LoadFontFromImage( Image image, Color key, int firstChar ) +> font = RL.LoadFontEx( string fileName, int fontSize, int fontChars{} ) -Load font from Image ( XNA style ) +Load font from file with extended parameters. Loading the default character set -- Failure return -1 -- Success return int +- Failure return nil +- Success return Font --- -> success = RL.UnloadFont( Font font ) +> font = RL.LoadFontFromImage( Image image, Color key, int firstChar ) -Unload Font from GPU memory ( VRAM ) +Load font from Image ( XNA style ) -- Failure return false -- Success return true +- Success return Font --- @@ -3893,30 +3889,21 @@ Unload Font from GPU memory ( VRAM ) --- -> success = RL.DrawFPS( Vector2 pos ) +> RL.DrawFPS( Vector2 pos ) Draw current FPS -- Failure return false -- Success return true - --- -> success = RL.DrawText( Font font, string text, Vector2 position, float fontSize, float spacing, Color tint ) +> RL.DrawText( Font font, string text, Vector2 position, float fontSize, float spacing, Color tint ) Draw text using font and additional parameters -- Failure return false -- Success return true - --- -> 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 ) +> RL.DrawTextPro( Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint ) -- Failure return false -- Success return true +Draw text using Font and pro parameters (rotation) --- @@ -3928,16 +3915,14 @@ Draw text using Font and pro parameters ( rotation ) Measure string size for Font -- Failure return false - Success return Vector2 --- > baseSize = RL.GetFontBaseSize( Font font ) -Get font base size ( default chars height ) +Get font base size (default chars height) -- Failure return false - Success return int --- @@ -3946,7 +3931,6 @@ Get font base size ( default chars height ) Get font number of glyph characters -- Failure return false - Success return int --- @@ -3955,17 +3939,15 @@ Get font number of glyph characters Get font padding around the glyph characters -- Failure return false - Success return int --- -> textureTable = RL.GetFontTexture( Font font ) +> texture = RL.GetFontTexture( Font font ) -Get font texture atlas containing the glyphs. NOTE! Texture in table form. +Get font texture atlas containing the glyphs. -- Failure return false -- Success return table +- Success return Texture --- @@ -6067,12 +6049,9 @@ Get gui state ( global state ) --- -> success = RL.GuiSetFont( Font font ) - -Set gui custom font ( global state ) +> RL.GuiSetFont( Font font ) -- Failure return false -- Success return true +Set gui custom font (global state) --- |
