00001 // Text class for rendering text in open gl 00002 #include "glew.h" 00003 #include "glut.h" 00004 #include "il.h" 00005 00006 #include <stdarg.h> 00007 #include <stdio.h> 00008 #include <string.h> 00009 00010 class CText 00011 { 00012 private: 00013 GLubyte fontImage[256][256][4]; 00014 GLuint texName[1]; 00015 GLuint base; // Base Display List For The Font 00016 public: 00017 CText(); 00018 ~CText(); 00019 GLvoid Init(char *filename); 00020 GLvoid Print(GLint x, GLint y, GLint set, const char *fmt, ...); 00021 };//CText