00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CybFTGLFontManagerC_H
00030 #define CybFTGLFontManagerC_H
00031
00032 #include "../oawconfig.h"
00033 #include "oaw/ctk/cybfontmanagerc.h"
00034 #include "FTGLExtrdFont.h"
00035
00036 class FTGLExtrdFont;
00037
00038
00039 OAW_BEGIN_NAMESPACE
00040
00041 class FTGL3DFont: public _3DFont{
00042 public:
00043 FTGL3DFont(const char* fontFile);
00044 ~FTGL3DFont();
00045 void Render(const char*,long);
00046 FT_Error Error() const;
00047 void Depth(float d);
00048 bool CharMap( FT_Encoding encoding );
00049 bool FaceSize( const unsigned int size, const unsigned int res = 72);
00050 protected:
00051 FTGLExtrdFont* m_pFTGLFont;
00052 };
00053
00054
00055 class OAW_DLLMAPPING CybFTGLFontManagerC : public CybFontManagerC {
00056
00057 public:
00058 CybFTGLFontManagerC();
00059 virtual ~CybFTGLFontManagerC();
00060
00061 virtual _3DFont* RetrieveFont(const char* pFontName, const char* pStyle);
00062 };
00063
00064 OAW_END_NAMESPACE
00065
00066 #endif