VR-Vantage
Loading...
Searching...
No Matches
fond.h File Reference

Go to the source code of this file.

Classes

struct  fond_font
struct  fond_buffer
struct  fond_extent
struct  FondDataWrapper

Typedefs

typedef std::map< std::string, FondDataWrapper * > FontDataMap

Enumerations

enum  FondError {
  FOND_NO_ERROR , FOND_FILE_LOAD_FAILED , FOND_OUT_OF_MEMORY , FOND_FONT_PACK_FAILED ,
  FOND_FONT_INIT_FAILED , FOND_OPENGL_ERROR , FOND_SIZE_EXCEEDED , FOND_NOT_LOADED ,
  FOND_UTF8_CONVERSION_ERROR , FOND_UNLOADED_GLYPH , FOND_NO_CHARACTERS_OR_CODEPOINTS
}

Functions

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 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)
DT_DLL_VRVGRAPHICSUTILS int fond_decode_utf8 (void *string, int32_t **decoded, size_t *size, FondError &error)
DT_DLL_VRVGRAPHICSUTILS const char * fond_error_string (FondError error)
int fond_check_glerror ()
int fond_check_shader (GLuint shader)
int fond_check_program (GLuint program)

Variables

DT_DLL_VRVGRAPHICSUTILS FontDataMap the_font_data

Typedef Documentation

◆ FontDataMap

typedef std::map<std::string,FondDataWrapper*> FontDataMap

Enumeration Type Documentation

◆ FondError

enum FondError
Enumerator
FOND_NO_ERROR 
FOND_FILE_LOAD_FAILED 
FOND_OUT_OF_MEMORY 
FOND_FONT_PACK_FAILED 
FOND_FONT_INIT_FAILED 
FOND_OPENGL_ERROR 
FOND_SIZE_EXCEEDED 
FOND_NOT_LOADED 
FOND_UTF8_CONVERSION_ERROR 
FOND_UNLOADED_GLYPH 
FOND_NO_CHARACTERS_OR_CODEPOINTS 

Function Documentation

◆ fond_render()

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 )

◆ fond_render_utf()

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 )

◆ fond_decode_utf8()

DT_DLL_VRVGRAPHICSUTILS int fond_decode_utf8 ( void * string,
int32_t ** decoded,
size_t * size,
FondError & error )

◆ fond_error_string()

DT_DLL_VRVGRAPHICSUTILS const char * fond_error_string ( FondError error)

◆ fond_check_glerror()

int fond_check_glerror ( )

◆ fond_check_shader()

int fond_check_shader ( GLuint shader)

◆ fond_check_program()

int fond_check_program ( GLuint program)

Variable Documentation

◆ the_font_data

DT_DLL_VRVGRAPHICSUTILS FontDataMap the_font_data
extern