RetroArch
Classes | Macros | Functions | Variables
d3d11_font.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <encodings/utf.h>
#include "../font_driver.h"
#include "../video_driver.h"
#include "../common/d3d11_common.h"
#include "../../verbosity.h"
Include dependency graph for d3d11_font.c:

Classes

struct  d3d11_font_t
 

Macros

#define CINTERFACE
 

Functions

static voidd3d11_font_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static void d3d11_font_free_font (void *data, bool is_threaded)
 
static int d3d11_font_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static void d3d11_font_render_line (video_frame_info_t *video_info, d3d11_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 d3d11_font_render_message (video_frame_info_t *video_info, d3d11_font_t *font, const char *msg, float scale, const unsigned int color, float pos_x, float pos_y, unsigned text_align)
 
static void d3d11_font_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 
static const struct font_glyphd3d11_font_get_glyph (void *data, uint32_t code)
 

Variables

font_renderer_t d3d11_font
 

Macro Definition Documentation

◆ CINTERFACE

#define CINTERFACE

Function Documentation

◆ d3d11_font_free_font()

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

◆ d3d11_font_get_glyph()

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

◆ d3d11_font_get_message_width()

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

◆ d3d11_font_init_font()

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

◆ d3d11_font_render_line()

static void d3d11_font_render_line ( video_frame_info_t video_info,
d3d11_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:

◆ d3d11_font_render_message()

static void d3d11_font_render_message ( video_frame_info_t video_info,
d3d11_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:

◆ d3d11_font_render_msg()

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

◆ d3d11_font

font_renderer_t d3d11_font
Initial value:
= {
"d3d11font",
NULL,
NULL,
}
static void * d3d11_font_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: d3d11_font.c:39
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static const struct font_glyph * d3d11_font_get_glyph(void *data, uint32_t code)
Definition: d3d11_font.c:349
static void d3d11_font_free_font(void *data, bool is_threaded)
Definition: d3d11_font.c:69
static void d3d11_font_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: d3d11_font.c:278
static int d3d11_font_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: d3d11_font.c:85