VR-Vantage 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
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)
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_tm_codepoints
unsigned int m_width
unsigned int m_height
unsigned int m_oversample
unsigned int m_atlas
unsigned char * m_fontdata
stbtt_packedcharm_chardata
stbtt_fontinfom_fontinfo
int m_converted_codepoints
int m_allocated_atlas
FondError m_error_code

Constructor & Destructor Documentation

fond_font::fond_font ( )

Member Function Documentation

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

Member Data Documentation

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

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


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)