Main Page | Modules | Data Structures | File List | Data Fields | Globals

massspec/font.h

00001 /* 00002 * OpenGL Font Support Definitions from Chapter 7. 00003 * 00004 * Written by Michael Sweet. 00005 */ 00006 00007 #ifndef _FONT_H_ 00008 #define _FONT_H_ 00009 00010 /* 00011 * Include necessary headers. 00012 */ 00013 00014 #ifdef WIN32 00015 # include <windows.h> 00016 #endif 00017 00018 # include <GL/gl.h> 00019 00020 00021 /* 00022 * Make this header file work with C and C++ source code... 00023 */ 00024 00025 # ifdef __cplusplus 00026 extern "C" { 00027 # endif /* __cplusplus */ 00028 00029 00030 /* 00031 * Font data structure... 00032 */ 00033 00034 typedef struct 00035 { 00036 GLuint base; /* Display list number of first character */ 00037 int widths[256]; /* Width of each character in pixels */ 00038 int height; /* Height of characters */ 00039 } GLFONT; 00040 00041 00042 /* 00043 * Prototypes... 00044 */ 00045 00046 #ifdef WIN32 00047 extern GLFONT *FontCreate(HDC hdc, const char *typeface, int height, 00048 int weight, DWORD italic); 00049 #endif 00050 00051 extern void FontDestroy(GLFONT *font); 00052 extern void FontPrintf(GLFONT *font, int align, const char *format, ...); 00053 extern void FontPuts(GLFONT *font, const char *s); 00054 00055 # ifdef __cplusplus 00056 } 00057 # endif /* __cplusplus */ 00058 #endif /* !_FONT_H_ */ 00059

Generated on Sun Feb 13 01:05:57 2005 for MapQuant by doxygen 1.3.7