RetroArch
Classes | Functions | Variables
wiiu_font.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <encodings/utf.h>
#include <wiiu/gx2.h>
#include "gfx/font_driver.h"
#include "gfx/video_driver.h"
#include "gfx/common/gx2_common.h"
#include "system/memory.h"
#include "wiiu/wiiu_dbg.h"
#include "verbosity.h"
Include dependency graph for wiiu_font.c:

Classes

struct  wiiu_font_t
 

Functions

static voidwiiu_font_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static void wiiu_font_free_font (void *data, bool is_threaded)
 
static int wiiu_font_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static void wiiu_font_render_line (video_frame_info_t *video_info, wiiu_font_t *font, const char *msg, unsigned msg_len, float scale, const unsigned int color, float pos_x, float pos_y, unsigned text_align)
 
static void wiiu_font_render_message (video_frame_info_t *video_info, wiiu_font_t *font, const char *msg, float scale, const unsigned int color, float pos_x, float pos_y, unsigned text_align)
 
static void wiiu_font_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 
static const struct font_glyphwiiu_font_get_glyph (void *data, uint32_t code)
 

Variables

font_renderer_t wiiu_font
 

Function Documentation

◆ wiiu_font_free_font()

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

◆ wiiu_font_get_glyph()

static const struct font_glyph* wiiu_font_get_glyph ( void data,
uint32_t  code 
)
static

◆ wiiu_font_get_message_width()

static int wiiu_font_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:

◆ wiiu_font_init_font()

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

◆ wiiu_font_render_line()

static void wiiu_font_render_line ( video_frame_info_t video_info,
wiiu_font_t font,
const char *  msg,
unsigned  msg_len,
float  scale,
const unsigned int  color,
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:

◆ wiiu_font_render_message()

static void wiiu_font_render_message ( video_frame_info_t video_info,
wiiu_font_t font,
const char *  msg,
float  scale,
const unsigned int  color,
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:

◆ wiiu_font_render_msg()

static void wiiu_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

◆ wiiu_font

font_renderer_t wiiu_font
Initial value:
=
{
"wiiufont",
NULL,
NULL,
}
static void * wiiu_font_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: wiiu_font.c:41
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int wiiu_font_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: wiiu_font.c:112
static const struct font_glyph * wiiu_font_get_glyph(void *data, uint32_t code)
Definition: wiiu_font.c:366
static void wiiu_font_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: wiiu_font.c:290
static void wiiu_font_free_font(void *data, bool is_threaded)
Definition: wiiu_font.c:94