SIO2font Struct Reference

#include <sio2_font.h>

Collaboration diagram for SIO2font:

Collaboration graph
[legend]

List of all members.

Public Attributes

char name [SIO2_MAX_CHAR]
 The name of the SIO2font.
unsigned int vbo
 The OpenGL VBO ID of the SIO2font.
unsigned int boffset
 The buffer offset in bytes used for the texture coordinates.
unsigned char n_char
 The number of characters per row used to build the SIO2font.
unsigned char c_offset
 The first ASCII value that should offset all the rest of the characters.
float size
 The width and height of every cell in pixels.
float space
 The number of space in pixels used to print characters on screen.
float line
 Store the number of line returns that was used when the SIO2font is printed on screen.
SIO2material_SIO2material
 The SIO2material used to draw the font.
SIO2transform _SIO2transform
 The transformation information of the SIO2font pivot point.


Member Data Documentation

char SIO2font::name[SIO2_MAX_CHAR]

The name of the SIO2font.

Referenced by sio2FontInit(), and sio2ResourceGet().

unsigned int SIO2font::vbo

The OpenGL VBO ID of the SIO2font.

Referenced by sio2FontBuild(), sio2FontFree(), and sio2FontPrint().

unsigned int SIO2font::boffset

The buffer offset in bytes used for the texture coordinates.

Referenced by sio2FontBuild(), and sio2FontPrint().

The number of characters per row used to build the SIO2font.

Referenced by sio2FontBuild(), and sio2FontCreate().

The first ASCII value that should offset all the rest of the characters.

Referenced by sio2FontCreate(), and sio2FontPrint().

The width and height of every cell in pixels.

Referenced by sio2FontBuild(), sio2FontCreate(), and sio2FontPrint().

The number of space in pixels used to print characters on screen.

Referenced by sio2FontCreate(), sio2FontGetHalfPxWidth(), sio2FontGetPxWidth(), and sio2FontPrint().

Store the number of line returns that was used when the SIO2font is printed on screen.

Referenced by sio2FontPrint().

The SIO2material used to draw the font.

Please take note that this SIO2material should contain the font texture in the first texture channel.

Referenced by sio2FontBuild(), sio2FontCreate(), and sio2FontPrint().

The transformation information of the SIO2font pivot point.

Please take note that each SIO2font cell is a centered square, so the bottom left of the font should always been offset by half the height of the cell in order to get a precise coordinate on screen.

Referenced by sio2FontInit(), and sio2FontPrint().


The documentation for this struct was generated from the following file:

Generated on Thu Mar 4 15:41:52 2010 for SIO2 Engine by  doxygen 1.5.6