RetroArch
Classes | Functions | Variables
metal_raster_font.m File Reference
#include <string.h>
#include <encodings/utf.h>
#include <compat/strl.h>
#include "../common/metal_common.h"
#include "../font_driver.h"
Include dependency graph for metal_raster_font.m:

Classes

class  MetalRaster
 

Functions

static void metal_raster_font_free_font (void *data, bool is_threaded)
 
static voidmetal_raster_font_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static int metal_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static void metal_raster_font_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 
static const struct font_glyphmetal_raster_font_get_glyph (void *data, uint32_t code)
 
static void metal_raster_font_flush_block (unsigned width, unsigned height, void *data, video_frame_info_t *video_info)
 
static void metal_raster_font_bind_block (void *data, void *userdata)
 

Variables

font_renderer_t metal_raster_font
 

Function Documentation

◆ metal_get_message_width()

static int metal_get_message_width ( void data,
const char *  msg,
unsigned  msg_len,
float  scale 
)
static
Here is the call graph for this function:

◆ metal_raster_font_bind_block()

static void metal_raster_font_bind_block ( void data,
void userdata 
)
static
Here is the call graph for this function:

◆ metal_raster_font_flush_block()

static void metal_raster_font_flush_block ( unsigned  width,
unsigned  height,
void data,
video_frame_info_t video_info 
)
static
Here is the call graph for this function:

◆ metal_raster_font_free_font()

static void metal_raster_font_free_font ( void data,
bool  is_threaded 
)
static

◆ metal_raster_font_get_glyph()

static const struct font_glyph* metal_raster_font_get_glyph ( void data,
uint32_t  code 
)
static
Here is the call graph for this function:

◆ metal_raster_font_init_font()

static void* metal_raster_font_init_font ( void data,
const char *  font_path,
float  font_size,
bool  is_threaded 
)
static

◆ metal_raster_font_render_msg()

static void metal_raster_font_render_msg ( video_frame_info_t video_info,
void data,
const char *  msg,
const struct font_params params 
)
static
Here is the call graph for this function:

Variable Documentation

◆ metal_raster_font

font_renderer_t metal_raster_font
Initial value:
= {
.ident = "Metal raster",
.get_message_width = metal_get_message_width
}
static int metal_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: metal_raster_font.m:508
static void metal_raster_font_flush_block(unsigned width, unsigned height, void *data, video_frame_info_t *video_info)
Definition: metal_raster_font.m:531
static void metal_raster_font_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: metal_raster_font.m:515
static void metal_raster_font_bind_block(void *data, void *userdata)
Definition: metal_raster_font.m:537
static void metal_raster_font_free_font(void *data, bool is_threaded)
Definition: metal_raster_font.m:502
static void * metal_raster_font_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: metal_raster_font.m:490
static const struct font_glyph * metal_raster_font_get_glyph(void *data, uint32_t code)
Definition: metal_raster_font.m:524