diff options
| author | Ray <[email protected]> | 2022-01-03 20:45:56 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-01-03 20:45:56 +0100 |
| commit | 2116a987456e07c3d1ed4e7ef8be3e4864e229cc (patch) | |
| tree | 0631c9c761eb318003dbae0c2a08b9b08eb60680 /src/raylib.h | |
| parent | 62858e11f7f3474713460d371b14c41040a89ea9 (diff) | |
| download | raylib-2116a987456e07c3d1ed4e7ef8be3e4864e229cc.tar.gz raylib-2116a987456e07c3d1ed4e7ef8be3e4864e229cc.zip | |
ADDED: `ExportFontAsCode()`
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index f1aef185..3805ba34 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1325,7 +1325,9 @@ RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileDat RLAPI GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int glyphCount, int type); // Load font data for further use RLAPI Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **recs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info RLAPI void UnloadFontData(GlyphInfo *chars, int glyphCount); // Unload font chars info data (RAM) -RLAPI void UnloadFont(Font font); // Unload Font from GPU memory (VRAM) +RLAPI void UnloadFont(Font font); // Unload font from GPU memory (VRAM) +RLAPI bool ExportFontAsCode(Font font, const char *fileName); // Export font as code file, returns true on success + // Text drawing functions RLAPI void DrawFPS(int posX, int posY); // Draw current FPS |
