diff options
| author | raysan5 <raysan5@gmail.com> | 2018-06-10 19:29:01 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2018-06-10 19:29:01 +0200 |
| commit | b48d225a43c2a08bf1e37b1f66ec09cf0795371c (patch) | |
| tree | 40e920cb41c2103979a7276c583f38d38d285da7 /src | |
| parent | 817ae075050b348e42223a567e7deaff42b6bb24 (diff) | |
| download | raylib-b48d225a43c2a08bf1e37b1f66ec09cf0795371c.tar.gz raylib-b48d225a43c2a08bf1e37b1f66ec09cf0795371c.zip | |
Propose new function: GenImageFont()
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/textures.c b/src/textures.c index c7bd7648..789da14c 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1979,6 +1979,15 @@ Image GenImageCellular(int width, int height, int tileSize) return image; } + +// Generate image: font atlas. Requires TTF as input file. +// NOTE: Generated atlas packs characters in order and rectangles are defined with magenta borders (?) +Image GenImageFont(const char *fileName, int fontSize, int charsCount, int *fontChars, CharInfo *chars) +{ + CharInfo *chars; // Characters info (if required) + + // TODO. +} #endif // SUPPORT_IMAGE_GENERATION // Generate GPU mipmaps for a texture |
