80 void cleanup_fontdata();
168 int load_fit(
unsigned int max_size);
198 int compute(
char *text,
size_t *n,
unsigned int *vao);
202 int compute_utf(int32_t *text,
size_t size,
size_t *n,
unsigned int *vao);
205 int codepoint_index(
unsigned int glyph);
231 int update(
char *text,
size_t *n,
unsigned int vbo,
unsigned int ebo);
235 int update_utf( int32_t* text,
size_t num_chars,
size_t* n,
unsigned int vbo,
unsigned int ebo,
236 int* width = NULL,
int* height = NULL );
241 int compute_extent(
char *text,
fond_extent *extent);
246 int compute_extent_utf(int32_t *text,
size_t size,
fond_extent *extent);
248 int load_file(
const char *file,
unsigned char **content);
346 float* color,
int layer_index,
float aspect_ratio = 1.0f );
351 float x,
float y,
float* color,
int layer_index,
float aspect_ratio = 1.0f );
FondError m_error_code
Definition: fond.h:121
DT_DLL_VRVGRAPHICSUTILS const char * fond_error_string(FondError error)
FondError m_error_code
Definition: fond.h:313
unsigned int m_height
Definition: fond.h:105
fond_font * font
Definition: fond.h:297
unsigned int myVao
Definition: fond.h:310
int m_converted_codepoints
Definition: fond.h:118
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)
int fond_check_program(GLuint program)
unsigned int myVbo
Definition: fond.h:311
unsigned int m_atlas
Definition: fond.h:113
unsigned int myProgram
Definition: fond.h:308
const char * m_file
Definition: fond.h:84
void set_error(FondError code)
Definition: fond.h:81
unsigned int myWidth
Definition: fond.h:304
voidpf void uLong size
Definition: ioapi.h:39
stbtt_fontinfo * m_fontinfo
Definition: fond.h:117
int m_allocated_atlas
Definition: fond.h:119
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:17
FondError
Definition: fond.h:24
DT_DLL_VRVGRAPHICSUTILS FontDataMap the_font_data
unsigned int myEbo
Definition: fond.h:312
stbtt_packedchar * m_chardata
Definition: fond.h:116
unsigned int myFrameBuffer
Definition: fond.h:309
fond_buffer m_buffer
Definition: fond.h:377
float gap
Definition: fond.h:336
unsigned int m_oversample
Definition: fond.h:111
fond_font m_font
Definition: fond.h:376
void set_error(FondError error)
Definition: fond.h:280
int fond_check_shader(GLuint shader)
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)
unsigned int m_width
Definition: fond.h:103
const char * m_characters
Definition: fond.h:95
int32_t * m_codepoints
Definition: fond.h:101
float r
Definition: fond.h:328
float l
Definition: fond.h:325
std::map< std::string, FondDataWrapper * > FontDataMap
Definition: fond.h:380
Definition: asyncJobServer.h:39
Definition: stb_truetype.h:568
float t
Definition: fond.h:331
float m_vsize
Definition: fond.h:91
unsigned char * m_fontdata
Definition: fond.h:115
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Definition: stb_truetype.h:699
unsigned int myTexture2dID
Definition: fond.h:301
unsigned int myHeight
Definition: fond.h:306
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
int m_index
Definition: fond.h:87
unsigned int myTexture3dID
Definition: fond.h:302
DT_DLL_VRVGRAPHICSUTILS int fond_decode_utf8(void *string, int32_t **decoded, size_t *size, FondError &error)
fond_buffer()
Definition: fond.h:264
float b
Definition: fond.h:334