home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
System
/
Mesa-3.1
/
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();
}