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,...) |
| 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.
1.5.4