Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

cybftglfontmanagerc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999-2003  Carsten Winkelholz, Malte Weiß
00003 
00004 Malte Weiß, 08.04.2003: Font manager now uses the FTGL (FreeTypeGL).
00005             09.04.2003: All metric functions have moved to CybFontManagerC.
00006                           CybFTGLFontManagerC only creates the FTGL font object.
00007 
00008 Address:  FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V.
00009       Neuenahrer Str. 20
00010       D - 53343 Wachtberg
00011       
00012 Email:    winkelholz@fgan.de
00013 
00014 This program is free software; you can redistribute it and/or
00015 modify it under the terms of the GNU General Public License
00016 as published by the Free Software Foundation; either version 2
00017 of the License, or (at your option) any later version.
00018 
00019 This program is distributed in the hope that it will be useful,
00020 but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022 GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License
00025 along with this program; if not, write to the Free Software
00026 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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

Generated on Tue Jul 29 14:24:10 2003 for Open ActiveWrl by doxygen1.3-rc2