VR-Vantage
Loading...
Searching...
No Matches
fond_font Struct Reference

Public Member Functions

 fond_font ()
void cleanup ()
void cleanup_fontdata ()
void set_error (FondError code)
void free_memory ()
int init ()
int load_fit (unsigned int max_size)
int compute (char *text, size_t *n, unsigned int *vao)
int compute_utf (int32_t *text, size_t size, size_t *n, unsigned int *vao)
int codepoint_index (unsigned int glyph)
int update (char *text, size_t *n, unsigned int vbo, unsigned int ebo)
int update_utf (int32_t *text, size_t num_chars, size_t *n, unsigned int vbo, unsigned int ebo, int *width=NULL, int *height=NULL)
int compute_extent (char *text, fond_extent *extent)
int compute_extent_utf (int32_t *text, size_t size, fond_extent *extent)
int load_file (const char *file, unsigned char **content)

Public Attributes

const char * m_file
int m_index
float m_vsize
const char * m_characters
int32_t * m_codepoints
unsigned int m_width
unsigned int m_height
unsigned int m_oversample
unsigned int m_atlas
unsigned char * m_fontdata
stbtt_packedchar * m_chardata
stbtt_fontinfo * m_fontinfo
int m_converted_codepoints
int m_allocated_atlas
FondError m_error_code

Constructor & Destructor Documentation

◆ fond_font()

fond_font::fond_font ( )

Member Function Documentation

◆ cleanup()

void fond_font::cleanup ( )

◆ cleanup_fontdata()

void fond_font::cleanup_fontdata ( )

◆ set_error()

void fond_font::set_error ( FondError code)
inline

References m_error_code.

◆ free_memory()

void fond_font::free_memory ( )

◆ init()

int fond_font::init ( )

◆ load_fit()

int fond_font::load_fit ( unsigned int max_size)

◆ compute()

int fond_font::compute ( char * text,
size_t * n,
unsigned int * vao )

◆ compute_utf()

int fond_font::compute_utf ( int32_t * text,
size_t size,
size_t * n,
unsigned int * vao )

◆ codepoint_index()

int fond_font::codepoint_index ( unsigned int glyph)

◆ update()

int fond_font::update ( char * text,
size_t * n,
unsigned int vbo,
unsigned int ebo )

◆ update_utf()

int fond_font::update_utf ( int32_t * text,
size_t num_chars,
size_t * n,
unsigned int vbo,
unsigned int ebo,
int * width = NULL,
int * height = NULL )

◆ compute_extent()

int fond_font::compute_extent ( char * text,
fond_extent * extent )

◆ compute_extent_utf()

int fond_font::compute_extent_utf ( int32_t * text,
size_t size,
fond_extent * extent )

◆ load_file()

int fond_font::load_file ( const char * file,
unsigned char ** content )

Member Data Documentation

◆ m_file

const char* fond_font::m_file

◆ m_index

int fond_font::m_index

◆ m_vsize

float fond_font::m_vsize

◆ m_characters

const char* fond_font::m_characters

◆ m_codepoints

int32_t* fond_font::m_codepoints

◆ m_width

unsigned int fond_font::m_width

◆ m_height

unsigned int fond_font::m_height

◆ m_oversample

unsigned int fond_font::m_oversample

◆ m_atlas

unsigned int fond_font::m_atlas

◆ m_fontdata

unsigned char* fond_font::m_fontdata

◆ m_chardata

stbtt_packedchar* fond_font::m_chardata

◆ m_fontinfo

stbtt_fontinfo* fond_font::m_fontinfo

◆ m_converted_codepoints

int fond_font::m_converted_codepoints

◆ m_allocated_atlas

int fond_font::m_allocated_atlas

◆ m_error_code

FondError fond_font::m_error_code

Referenced by set_error().


The documentation for this struct was generated from the following file: