OGRE: OgreFontManager.h Source File - OGRE Documentation

# 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://www.ogre3d.org/
    00006
    00007 Copyright (c) 2000-2006 Torus Knot Software Ltd
    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 #include "OgreFont.h"
    00033
    00034 namespace Ogre
    00035 {
    00037     class _OgreExport FontManager : public ResourceManager, public Singleton< FontManager >
    00038     {
    00039     public:
    00040
    00041         FontManager();
    00042         ~FontManager();
    00043
    00045         void parseScript(DataStreamPtr& stream, const String& groupName);
    00061         static FontManager& getSingleton(void);
    00077         static FontManager* getSingletonPtr(void);
    00078
    00079     protected:
    00080
    00082         Resource* createImpl(const String& name, ResourceHandle handle,
    00083             const String& group, bool isManual, ManualResourceLoader* loader,
    00084             const NameValuePairList* params);
    00085         void parseAttribute(const String& line, FontPtr& pFont);
    00086
    00087         void logBadAttrib(const String& line, FontPtr& pFont);
    00088
    00089
    00090     };
    00091 }
    00092
    00093 #endif

Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Jul 26 11:32:17 2009