mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 01:38:12 +00:00
(Font) Added get_message_width to font_renderer_t
This commit is contained in:
parent
10e2949ad8
commit
efd3f7cc58
@ -118,4 +118,5 @@ font_renderer_t d3d_win32_font = {
|
||||
NULL, /* get_glyph */
|
||||
NULL, /* bind_block */
|
||||
NULL, /* flush */
|
||||
NULL /* get_message_width */
|
||||
};
|
||||
|
@ -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 */
|
||||
};
|
||||
|
@ -104,5 +104,6 @@ font_renderer_t libdbg_font = {
|
||||
"libdbgfont",
|
||||
NULL, /* get_glyph */
|
||||
NULL, /* bind_block */
|
||||
NULL, /* flush */
|
||||
NULL, /* flush */,
|
||||
NULL, /* get_message_width */
|
||||
};
|
||||
|
@ -92,4 +92,5 @@ font_renderer_t d3d_xdk1_font = {
|
||||
NULL, /* get_glyph */
|
||||
NULL, /* bind_block */
|
||||
NULL, /* flush */
|
||||
NULL /* get_message_width */
|
||||
};
|
||||
|
@ -497,4 +497,5 @@ font_renderer_t d3d_xbox360_font = {
|
||||
NULL, /* get_glyph */
|
||||
NULL, /* bind_block */
|
||||
NULL, /* flush */
|
||||
NULL /* get_message_width */
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user