(Font) Added get_message_width to font_renderer_t

This commit is contained in:
natifion 2015-05-16 16:32:16 +02:00
parent 10e2949ad8
commit efd3f7cc58
6 changed files with 9 additions and 2 deletions

View File

@ -118,4 +118,5 @@ font_renderer_t d3d_win32_font = {
NULL, /* get_glyph */
NULL, /* bind_block */
NULL, /* flush */
NULL /* get_message_width */
};

View File

@ -407,5 +407,6 @@ font_renderer_t gl_raster_font = {
"GL raster",
gl_raster_font_get_glyph,
gl_raster_font_bind_block,
gl_raster_font_flush_block
gl_raster_font_flush_block,
NULL /* get_message_width */
};

View File

@ -104,5 +104,6 @@ font_renderer_t libdbg_font = {
"libdbgfont",
NULL, /* get_glyph */
NULL, /* bind_block */
NULL, /* flush */
NULL, /* flush */,
NULL, /* get_message_width */
};

View File

@ -92,4 +92,5 @@ font_renderer_t d3d_xdk1_font = {
NULL, /* get_glyph */
NULL, /* bind_block */
NULL, /* flush */
NULL /* get_message_width */
};

View File

@ -497,4 +497,5 @@ font_renderer_t d3d_xbox360_font = {
NULL, /* get_glyph */
NULL, /* bind_block */
NULL, /* flush */
NULL /* get_message_width */
};

View File

@ -70,6 +70,8 @@ typedef struct font_renderer
const struct font_glyph *(*get_glyph)(void *data, uint32_t code);
void (*bind_block)(void *data, void *block);
void (*flush)(void *data);
int (*get_message_width)(void *data, const char *msg, float scale);
} font_renderer_t;
extern font_renderer_t gl_raster_font;