freetype Namespace Reference


Functions

int next_p2 (int a)
void make_dlist (FT_Face face, char ch, GLuint list_base, GLuint *tex_base)
 Create a display list coresponding to the give character.
void pushScreenCoordinateMatrix ()
void pop_projection_matrix ()
void print (const font_data &ft_font, float x, float y, const char *fmt,...)


Detailed Description

Wrap everything in a namespace, that we can use common function names like "print" without worrying about overlapping with anyone else's code.

Function Documentation

int freetype::next_p2 ( int  a  )  [inline]

This function gets the first power of 2 >= the int that we pass it.

void freetype::pop_projection_matrix (  )  [inline]

Pops the projection matrix without changing the current MatrixMode.

void freetype::print ( const font_data &  ft_font,
float  x,
float  y,
const char *  fmt,
  ... 
)

Much like Nehe's glPrint function, but modified to work with freetype fonts.

void freetype::pushScreenCoordinateMatrix (  )  [inline]

A fairly straight forward function that pushes a projection matrix that will make object world coordinates identical to window coordinates.


Generated on Fri May 29 18:22:30 2009 for VisLink by  doxygen 1.5.4