소스 검색

Propose new function: GenImageFont()

raysan5 7 년 전
부모
커밋
b48d225a43
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/textures.c

+ 9 - 0
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