00001 #ifndef __FTTextureGlyph__
00002 #define __FTTextureGlyph__
00003
00004
00005 #include <ft2build.h>
00006 #include FT_FREETYPE_H
00007 #include FT_GLYPH_H
00008
00009 #include "FTGL.h"
00010 #include "FTGlyph.h"
00011
00012
00020 class FTGL_EXPORT FTTextureGlyph : public FTGlyph
00021 {
00022 public:
00036 FTTextureGlyph( FT_GlyphSlot glyph, int id, int xOffset, int yOffset, GLsizei width, GLsizei height);
00037
00041 virtual ~FTTextureGlyph();
00042
00049 virtual const FTPoint& Render( const FTPoint& pen);
00050
00055 static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
00056
00057 private:
00061 int destWidth;
00062
00066 int destHeight;
00067
00071 FTPoint pos;
00072
00076 FTPoint uv[2];
00077
00081 int glTextureID;
00082
00089 static GLint activeTextureID;
00090
00091 };
00092
00093
00094 #endif // __FTTextureGlyph__