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

Classes

struct  vulkan_raster_t
 

Functions

static void vulkan_raster_font_free_font (void *data, bool is_threaded)
 
static voidvulkan_raster_font_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static INLINE void vulkan_raster_font_update_glyph (vulkan_raster_t *font, const struct font_glyph *glyph)
 
static int vulkan_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static void vulkan_raster_font_render_line (vulkan_raster_t *font, const char *msg, unsigned msg_len, float scale, const float color[4], float pos_x, float pos_y, unsigned text_align)
 
static void vulkan_raster_font_render_message (vulkan_raster_t *font, const char *msg, float scale, const float color[4], float pos_x, float pos_y, unsigned text_align)
 
static void vulkan_raster_font_flush (vulkan_raster_t *font)
 
static void vulkan_raster_font_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 
static const struct font_glyphvulkan_raster_font_get_glyph (void *data, uint32_t code)
 

Variables

font_renderer_t vulkan_raster_font
 

Function Documentation

◆ vulkan_get_message_width()

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

◆ vulkan_raster_font_flush()

static void vulkan_raster_font_flush ( vulkan_raster_t font)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vulkan_raster_font_free_font()

static void vulkan_raster_font_free_font ( void data,
bool  is_threaded 
)
static
Here is the call graph for this function:

◆ vulkan_raster_font_get_glyph()

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

◆ vulkan_raster_font_init_font()

static void* vulkan_raster_font_init_font ( void data,
const char *  font_path,
float  font_size,
bool  is_threaded 
)
static
Here is the call graph for this function:

◆ vulkan_raster_font_render_line()

static void vulkan_raster_font_render_line ( vulkan_raster_t font,
const char *  msg,
unsigned  msg_len,
float  scale,
const float  color[4],
float  pos_x,
float  pos_y,
unsigned  text_align 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vulkan_raster_font_render_message()

static void vulkan_raster_font_render_message ( vulkan_raster_t font,
const char *  msg,
float  scale,
const float  color[4],
float  pos_x,
float  pos_y,
unsigned  text_align 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vulkan_raster_font_render_msg()

static void vulkan_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:

◆ vulkan_raster_font_update_glyph()

static INLINE void vulkan_raster_font_update_glyph ( vulkan_raster_t font,
const struct font_glyph glyph 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ vulkan_raster_font

font_renderer_t vulkan_raster_font
Initial value:
= {
"Vulkan raster",
NULL,
NULL,
}
static void vulkan_raster_font_free_font(void *data, bool is_threaded)
Definition: vulkan_raster_font.c:89
static void * vulkan_raster_font_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: vulkan_raster_font.c:42
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void vulkan_raster_font_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: vulkan_raster_font.c:330
static int vulkan_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: vulkan_raster_font.c:124
static const struct font_glyph * vulkan_raster_font_get_glyph(void *data, uint32_t code)
Definition: vulkan_raster_font.c:420