199 int compute(
char *text,
size_t *n,
unsigned int *vao);
203 int compute_utf(int32_t *text,
size_t size,
size_t *n,
unsigned int *vao);
232 int update(
char *text,
size_t *n,
unsigned int vbo,
unsigned int ebo);
236 int update_utf( int32_t* text,
size_t num_chars,
size_t* n,
unsigned int vbo,
unsigned int ebo,
237 int* width = NULL,
int* height = NULL );
249 int load_file(
const char *file,
unsigned char **content);
347 float* color,
int layer_index,
float aspect_ratio = 1.0f );
352 float x,
float y,
float* color,
int layer_index,
float aspect_ratio = 1.0f );
unsigned int GLuint
Definition DtGlTextureBufferObject.h:18
DT_DLL_VRVGRAPHICSUTILS int fond_render(fond_buffer *buffer, const char *text, float x, float y, float *color, int layer_index, float aspect_ratio=1.0f)
DT_DLL_VRVGRAPHICSUTILS const char * fond_error_string(FondError error)
int fond_check_shader(GLuint shader)
DT_DLL_VRVGRAPHICSUTILS FontDataMap the_font_data
DT_DLL_VRVGRAPHICSUTILS int fond_decode_utf8(void *string, int32_t **decoded, size_t *size, FondError &error)
int fond_check_program(GLuint program)
std::map< std::string, FondDataWrapper * > FontDataMap
Definition fond.h:381
DT_DLL_VRVGRAPHICSUTILS int fond_render_utf(fond_buffer *buffer, int32_t *text, size_t num_chars, float x, float y, float *color, int layer_index, float aspect_ratio=1.0f)
FondError
Definition fond.h:25
@ FOND_SIZE_EXCEEDED
Definition fond.h:45
@ FOND_NO_CHARACTERS_OR_CODEPOINTS
Definition fond.h:58
@ FOND_FILE_LOAD_FAILED
Definition fond.h:30
@ FOND_FONT_PACK_FAILED
Definition fond.h:36
@ FOND_FONT_INIT_FAILED
Definition fond.h:40
@ FOND_UNLOADED_GLYPH
Definition fond.h:55
@ FOND_NOT_LOADED
Definition fond.h:48
@ FOND_OPENGL_ERROR
Definition fond.h:43
@ FOND_NO_ERROR
Definition fond.h:27
@ FOND_OUT_OF_MEMORY
Definition fond.h:32
@ FOND_UTF8_CONVERSION_ERROR
Definition fond.h:51
fond_buffer m_buffer
Definition fond.h:378
fond_font m_font
Definition fond.h:377
unsigned int myTexture2dID
Definition fond.h:302
unsigned int myEbo
Definition fond.h:313
unsigned int myFrameBuffer
Definition fond.h:310
fond_buffer()
Definition fond.h:265
unsigned int myProgram
Definition fond.h:309
unsigned int myVbo
Definition fond.h:312
unsigned int myWidth
Definition fond.h:305
unsigned int myVao
Definition fond.h:311
fond_font * font
Definition fond.h:298
FondError m_error_code
Definition fond.h:314
unsigned int myHeight
Definition fond.h:307
void set_error(FondError error)
Definition fond.h:281
unsigned int myTexture3dID
Definition fond.h:303
float t
Definition fond.h:332
float l
Definition fond.h:326
float r
Definition fond.h:329
float b
Definition fond.h:335
float gap
Definition fond.h:337
int update(char *text, size_t *n, unsigned int vbo, unsigned int ebo)
int compute_extent(char *text, fond_extent *extent)
float m_vsize
Definition fond.h:92
int m_index
Definition fond.h:88
int codepoint_index(unsigned int glyph)
int compute(char *text, size_t *n, unsigned int *vao)
unsigned int m_height
Definition fond.h:106
int32_t * m_codepoints
Definition fond.h:102
stbtt_packedchar * m_chardata
Definition fond.h:117
void set_error(FondError code)
Definition fond.h:82
unsigned int m_oversample
Definition fond.h:112
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 m_allocated_atlas
Definition fond.h:120
const char * m_characters
Definition fond.h:96
unsigned int m_width
Definition fond.h:104
int compute_utf(int32_t *text, size_t size, size_t *n, unsigned int *vao)
int load_file(const char *file, unsigned char **content)
const char * m_file
Definition fond.h:85
stbtt_fontinfo * m_fontinfo
Definition fond.h:118
int load_fit(unsigned int max_size)
int compute_extent_utf(int32_t *text, size_t size, fond_extent *extent)
unsigned char * m_fontdata
Definition fond.h:116
unsigned int m_atlas
Definition fond.h:114
FondError m_error_code
Definition fond.h:122
int m_converted_codepoints
Definition fond.h:119
Definition stb_truetype.h:700
Definition stb_truetype.h:569
#define DT_DLL_VRVGRAPHICSUTILS
Definition vrvGraphicsUtils.h:18