00001 /*------------------------------------------------------------------------- 00002 This source file is a part of OGRE 00003 (Object-oriented Graphics Rendering Engine) 00004 00005 For the latest info, see http://www.ogre3d.org/ 00006 00007 Copyright © 2000-2002 The OGRE Team 00008 Also see acknowledgements in Readme.html 00009 00010 This library is free software; you can redistribute it and/or modify it 00011 under the terms of the GNU Lesser General Public License (LGPL) as 00012 published by the Free Software Foundation; either version 2.1 of the 00013 License, or (at your option) any later version. 00014 00015 This library is distributed in the hope that it will be useful, but 00016 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00017 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00018 License for more details. 00019 00020 You should have received a copy of the GNU Lesser General Public License 00021 along with this library; if not, write to the Free Software Foundation, 00022 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or go to 00023 http://www.gnu.org/copyleft/lesser.txt 00024 -------------------------------------------------------------------------*/ 00025 00026 #ifndef _FontManager_H__ 00027 #define _FontManager_H__ 00028 00029 #include "OgrePrerequisites.h" 00030 #include "OgreSingleton.h" 00031 #include "OgreResourceManager.h" 00032 00033 namespace Ogre 00034 { 00036 class _OgreExport FontManager : public ResourceManager, public Singleton< FontManager > 00037 { 00038 public: 00039 00046 Resource * create(const String& name); 00047 00049 void parseScript( DataChunk& chunk ); 00051 void parseAllSources( const String& extension = ".fontdef" ); 00067 static FontManager& getSingleton(void); 00083 static FontManager* getSingletonPtr(void); 00084 00085 protected: 00086 00088 void parseAttribute(const String& line, Font* pFont); 00089 00090 void logBadAttrib(const String& line, Font* pFont); 00091 00092 }; 00093 } 00094 00095 #endif
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:22:10 2004