RetroArch
Classes | Macros | Typedefs | Functions | Variables
bitmapfont.c File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <boolean.h>
#include "bitmap.h"
#include "../font_driver.h"
Include dependency graph for bitmapfont.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  bm_renderer
 

Macros

#define BMP_ATLAS_COLS   16
 
#define BMP_ATLAS_ROWS   16
 
#define BMP_ATLAS_SIZE   (BMP_ATLAS_COLS * BMP_ATLAS_ROWS)
 

Typedefs

typedef struct bm_renderer bm_renderer_t
 

Functions

static struct font_atlasfont_renderer_bmp_get_atlas (void *data)
 
static const struct font_glyphfont_renderer_bmp_get_glyph (void *data, uint32_t code)
 
static void char_to_texture (bm_renderer_t *handle, uint8_t letter, unsigned atlas_x, unsigned atlas_y)
 
static voidfont_renderer_bmp_init (const char *font_path, float font_size)
 
static void font_renderer_bmp_free (void *data)
 
static const char * font_renderer_bmp_get_default_font (void)
 
static int font_renderer_bmp_get_line_height (void *data)
 

Variables

font_renderer_driver_t bitmap_font_renderer
 

Macro Definition Documentation

◆ BMP_ATLAS_COLS

#define BMP_ATLAS_COLS   16

◆ BMP_ATLAS_ROWS

#define BMP_ATLAS_ROWS   16

◆ BMP_ATLAS_SIZE

#define BMP_ATLAS_SIZE   (BMP_ATLAS_COLS * BMP_ATLAS_ROWS)

Typedef Documentation

◆ bm_renderer_t

typedef struct bm_renderer bm_renderer_t

Function Documentation

◆ char_to_texture()

static void char_to_texture ( bm_renderer_t handle,
uint8_t  letter,
unsigned  atlas_x,
unsigned  atlas_y 
)
static
Here is the caller graph for this function:

◆ font_renderer_bmp_free()

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

◆ font_renderer_bmp_get_atlas()

static struct font_atlas* font_renderer_bmp_get_atlas ( void data)
static

◆ font_renderer_bmp_get_default_font()

static const char* font_renderer_bmp_get_default_font ( void  )
static

◆ font_renderer_bmp_get_glyph()

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

◆ font_renderer_bmp_get_line_height()

static int font_renderer_bmp_get_line_height ( void data)
static

◆ font_renderer_bmp_init()

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

Variable Documentation

◆ bitmap_font_renderer

font_renderer_driver_t bitmap_font_renderer
Initial value:
= {
"bitmap",
}
static int font_renderer_bmp_get_line_height(void *data)
Definition: bitmapfont.c:138
static struct font_atlas * font_renderer_bmp_get_atlas(void *data)
Definition: bitmapfont.c:38
static void font_renderer_bmp_free(void *data)
Definition: bitmapfont.c:124
static const struct font_glyph * font_renderer_bmp_get_glyph(void *data, uint32_t code)
Definition: bitmapfont.c:46
static const char * font_renderer_bmp_get_default_font(void)
Definition: bitmapfont.c:133
static void * font_renderer_bmp_init(const char *font_path, float font_size)
Definition: bitmapfont.c:84