winfont.h

00001 // NOT A PART OF GLICT.
00002 // This code is not licensed under GNU GPL.
00003 
00004 #ifndef __WINFONT_H
00005 #define __WINFONT_H
00006 
00007 
00008 #define WINFONT_BOLD 1
00009 #define WINFONT_ITALIC 2
00010 #define WINFONT_UNDERLINE 4
00011 #define WINFONT_STRIKEOUT 8
00012 
00013 #include <windows.h>
00014 #include <GL/gl.h>
00015 
00016 
00017 
00018 typedef struct {
00019         GLuint base;
00020         GLYPHMETRICSFLOAT gmf[256];
00021 } WinFontStruct;
00022 
00023 WinFontStruct *WinFontCreate(char* fontname, char style, char size);
00024 void WinFontDelete(void* font);
00025 float WinFontSize(const char* txt, const void* fontvoid);
00026 void WinFontDraw(const char* txt, const void* fontvoid, float x, float y);
00027 
00028 #endif

SourceForge.net Logo
generated with doxygen 1.5.3 on Mon Oct 29 18:09:26 2007