This is font.c in view mode; [Download] [Up]
/* font.c */ #include <string.h> #include "gltk.h" #include "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(); }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.