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 float Render( const FTPoint& pen);
00050
00051 private:
00055 int destWidth;
00056
00060 int destHeight;
00061
00065 FTPoint pos;
00066
00070 FTPoint uv[2];
00071
00075 int glTextureID;
00076
00084 GLint activeTextureID;
00085
00086 };
00087
00088
00089 #endif // __FTTextureGlyph__