Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OgreFontManager.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002 This source file is a part of OGRE
00003 (Object-oriented Graphics Rendering Engine)
00004 
00005 For the latest info, see http://ogre.sourceforge.net/
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 "OgreResourceManager.h"
00031 #include "OgreFont.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" );
00052 
00064         static FontManager& FontManager::getSingleton(void);
00065 
00066     protected:
00067 
00069         void parseAttribute(String& line, Font* pFont);
00070 
00071         void logBadAttrib(const String& line, Font* pFont);
00072 
00073     };
00074 }
00075 
00076 #endif

Copyright © 2002 by The OGRE Team