Rename FontRenderer to FR_Renderer
This commit is contained in:
@@ -15,7 +15,7 @@ typedef struct {
|
||||
typedef struct FR_Bitmap FR_Bitmap;
|
||||
|
||||
struct FR_Impl;
|
||||
typedef struct FR_Impl FontRenderer;
|
||||
typedef struct FR_Impl FR_Renderer;
|
||||
|
||||
enum {
|
||||
FR_HINTING = 1 << 0,
|
||||
@@ -31,22 +31,21 @@ typedef struct {
|
||||
int left, top, right, bottom;
|
||||
} FR_Clip_Area;
|
||||
|
||||
FontRenderer * FR_New(unsigned int flags, float gamma);
|
||||
void FR_Free(FontRenderer *);
|
||||
FR_Bitmap* FR_Bitmap_New(FontRenderer *, int width, int height);
|
||||
int FR_Load_Font(FontRenderer *, const char *filename);
|
||||
int FR_Get_Font_Height(FontRenderer *, float size);
|
||||
int FR_Bake_Font_Bitmap(FontRenderer *, int font_height,
|
||||
FR_Renderer * FR_Renderer_New(unsigned int flags, float gamma);
|
||||
void FR_Renderer_Free(FR_Renderer *);
|
||||
int FR_Load_Font(FR_Renderer *, const char *filename);
|
||||
FR_Bitmap* FR_Bitmap_New(FR_Renderer *, int width, int height);
|
||||
void FR_Bitmap_Free(FR_Bitmap *image);
|
||||
int FR_Get_Font_Height(FR_Renderer *, float size);
|
||||
int FR_Bake_Font_Bitmap(FR_Renderer *, int font_height,
|
||||
FR_Bitmap *image,
|
||||
int first_char, int num_chars, FR_Bitmap_Glyph_Metrics *glyph_info);
|
||||
void FR_Blend_Glyph(FontRenderer *font_renderer,
|
||||
void FR_Blend_Glyph(FR_Renderer *font_renderer,
|
||||
FR_Clip_Area *clip, int x, int y,
|
||||
uint8_t *dst, int dst_width,
|
||||
const FR_Bitmap *glyphs_bitmap,
|
||||
const FR_Bitmap_Glyph_Metrics *glyph, FR_Color color);
|
||||
|
||||
void FR_Bitmap_Free(FR_Bitmap *image);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user