home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 109
/
EnigmaAmiga109CD.iso
/
software
/
sviluppo
/
mesa-aux
/
src-aux.aos
/
font.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-06-20
|
415b
|
27 lines
/*
* font.c
*/
#include <string.h>
#include <GL/gltk.h>
#include <GL/glaux.h>
static GLuint bitmapBase;
void auxCreateFont(void)
{
bitmapBase = glGenLists(256);
if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {
auxQuit();
}
}
void auxDrawStr(char *str)
{
glPushAttrib(GL_LIST_BIT);
glListBase(bitmapBase);
glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);
glPopAttrib();
}