RetroArch
Classes | Macros | Functions | Variables
stb.c File Reference
#include <ctype.h>
#include <file/file_path.h>
#include <streams/file_stream.h>
#include <retro_miscellaneous.h>
#include "../font_driver.h"
#include "../../verbosity.h"
#include "../../deps/stb/stb_rect_pack.h"
#include "../../deps/stb/stb_truetype.h"
Include dependency graph for stb.c:

Classes

struct  stb_font_renderer_t
 

Macros

#define STB_TRUETYPE_IMPLEMENTATION
 
#define STB_RECT_PACK_IMPLEMENTATION
 
#define STBTT_STATIC
 
#define STBRP_STATIC
 
#define STATIC   static INLINE
 

Functions

static struct font_atlasfont_renderer_stb_get_atlas (void *data)
 
static const struct font_glyphfont_renderer_stb_get_glyph (void *data, uint32_t code)
 
static void font_renderer_stb_free (void *data)
 
static bool font_renderer_stb_create_atlas (stb_font_renderer_t *self, uint8_t *font_data, float font_size, unsigned width, unsigned height)
 
static voidfont_renderer_stb_init (const char *font_path, float font_size)
 
static const char * font_renderer_stb_get_default_font (void)
 
static int font_renderer_stb_get_line_height (void *data)
 

Variables

font_renderer_driver_t stb_font_renderer
 

Macro Definition Documentation

◆ STATIC

#define STATIC   static INLINE

◆ STB_RECT_PACK_IMPLEMENTATION

#define STB_RECT_PACK_IMPLEMENTATION

◆ STB_TRUETYPE_IMPLEMENTATION

#define STB_TRUETYPE_IMPLEMENTATION

◆ STBRP_STATIC

#define STBRP_STATIC

◆ STBTT_STATIC

#define STBTT_STATIC

Function Documentation

◆ font_renderer_stb_create_atlas()

static bool font_renderer_stb_create_atlas ( stb_font_renderer_t self,
uint8_t font_data,
float  font_size,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_renderer_stb_free()

static void font_renderer_stb_free ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_renderer_stb_get_atlas()

static struct font_atlas* font_renderer_stb_get_atlas ( void data)
static

◆ font_renderer_stb_get_default_font()

static const char* font_renderer_stb_get_default_font ( void  )
static
Here is the call graph for this function:

◆ font_renderer_stb_get_glyph()

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

◆ font_renderer_stb_get_line_height()

static int font_renderer_stb_get_line_height ( void data)
static

◆ font_renderer_stb_init()

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

Variable Documentation

◆ stb_font_renderer

font_renderer_driver_t stb_font_renderer
Initial value:
= {
"stb",
}
static void * font_renderer_stb_init(const char *font_path, float font_size)
Definition: stb.c:141
static const char * font_renderer_stb_get_default_font(void)
Definition: stb.c:184
static const struct font_glyph * font_renderer_stb_get_glyph(void *data, uint32_t code)
Definition: stb.c:50
static void font_renderer_stb_free(void *data)
Definition: stb.c:57
static struct font_atlas * font_renderer_stb_get_atlas(void *data)
Definition: stb.c:44
static int font_renderer_stb_get_line_height(void *data)
Definition: stb.c:229