#include <GL/gl.h>
Go to the source code of this file.
void makeRasterFont |
( |
void |
| ) |
|
|
inline |
Definition at line 106 of file glfont.h.
References fontOffset, and rasters.
Referenced by printString().
109 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
111 for (i = 32; i < 127; i++) {
112 glNewList(i+fontOffset, GL_COMPILE);
113 glBitmap(8, 13, 0.0, 2.0, 10.0, 0.0,
rasters[i-32]);
static GLubyte rasters[][13]
void printString |
( |
char * |
s | ) |
|
|
inline |
Definition at line 118 of file glfont.h.
References fontOffset, and makeRasterFont().
121 glPushAttrib (GL_LIST_BIT);
123 glCallLists(strlen(s), GL_UNSIGNED_BYTE, (GLubyte *) s);
void makeRasterFont(void)