VR-Vantage 3.0 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
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

Enumeration Type Documentation

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

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)

Variable Documentation



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