81 void cleanup_fontdata();
169 int load_fit(
unsigned int max_size);
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);
206 int codepoint_index(
unsigned int glyph);
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 );
242 int compute_extent(
char *text,
fond_extent *extent);
247 int compute_extent_utf(int32_t *text,
size_t size,
fond_extent *extent);
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 );
FondError m_error_code
Definition: fond.h:122
DT_DLL_VRVGRAPHICSUTILS const char * fond_error_string(FondError error)
FondError m_error_code
Definition: fond.h:314
unsigned int m_height
Definition: fond.h:106
fond_font * font
Definition: fond.h:298
unsigned int myVao
Definition: fond.h:311
int m_converted_codepoints
Definition: fond.h:119
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:312
unsigned int m_atlas
Definition: fond.h:114
unsigned int myProgram
Definition: fond.h:309
const char * m_file
Definition: fond.h:85
void set_error(FondError code)
Definition: fond.h:82
unsigned int myWidth
Definition: fond.h:305
voidpf void uLong size
Definition: ioapi.h:39
stbtt_fontinfo * m_fontinfo
Definition: fond.h:118
int m_allocated_atlas
Definition: fond.h:120
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:18
FondError
Definition: fond.h:25
DT_DLL_VRVGRAPHICSUTILS FontDataMap the_font_data
unsigned int myEbo
Definition: fond.h:313
stbtt_packedchar * m_chardata
Definition: fond.h:117
unsigned int myFrameBuffer
Definition: fond.h:310
fond_buffer m_buffer
Definition: fond.h:378
float gap
Definition: fond.h:337
unsigned int m_oversample
Definition: fond.h:112
fond_font m_font
Definition: fond.h:377
void set_error(FondError error)
Definition: fond.h:281
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:104
const char * m_characters
Definition: fond.h:96
int32_t * m_codepoints
Definition: fond.h:102
float r
Definition: fond.h:329
float l
Definition: fond.h:326
std::map< std::string, FondDataWrapper * > FontDataMap
Definition: fond.h:381
Definition: asyncJobServer.h:39
Definition: stb_truetype.h:568
float t
Definition: fond.h:332
float m_vsize
Definition: fond.h:92
unsigned char * m_fontdata
Definition: fond.h:116
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:302
unsigned int myHeight
Definition: fond.h:307
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
int m_index
Definition: fond.h:88
unsigned int myTexture3dID
Definition: fond.h:303
DT_DLL_VRVGRAPHICSUTILS int fond_decode_utf8(void *string, int32_t **decoded, size_t *size, FondError &error)
fond_buffer()
Definition: fond.h:265
float b
Definition: fond.h:335