00001 //============================================================================ 00002 // text.hpp : bitmap text drawing routine; works like "printf" 00003 //============================================================================ 00004 00005 #ifndef _GLVU_TEXT_H_ 00006 #define _GLVU_TEXT_H_ 00007 00008 //------------------------------------------------------------------------------- 00015 //------------------------------------------------------------------------------- 00016 00017 //------------------------------------------------------------------------------- 00022 //------------------------------------------------------------------------------- 00023 void* GetCurrentFont(); 00024 00025 //------------------------------------------------------------------------------- 00038 //------------------------------------------------------------------------------- 00039 void SetCurrentFont(void *font); 00040 00041 //------------------------------------------------------------------------------- 00046 //------------------------------------------------------------------------------- 00047 void SetCurrentFont(int fontid); 00048 00049 //------------------------------------------------------------------------------- 00055 //------------------------------------------------------------------------------- 00056 int GetFontHeight(void *font); 00057 00058 //------------------------------------------------------------------------------- 00063 //------------------------------------------------------------------------------- 00064 int GetFontHeight(); 00065 00066 //------------------------------------------------------------------------------- 00071 //------------------------------------------------------------------------------- 00072 int GetFontHeight(int fontid); 00073 00074 //------------------------------------------------------------------------------- 00082 //------------------------------------------------------------------------------- 00083 void Text(int x, int y, char *format, ...); 00084 00085 //------------------------------------------------------------------------------- 00093 //------------------------------------------------------------------------------- 00094 void Text3D(float x, float y, float z, char *format, ...); 00095 00096 00097 #endif
1.2.10 written by Dimitri van Heesch,
© 1997-2001