#ifndef FONTMANAGER_H #define FONTMANAGER_H /* ----------------------------------------------------------------------------- Class: FontManager Desc: Manages Loading and Unloading of fonts. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "Font.h" #include //----------------------------------------------------------------------------- // FontManager Class Declarations //----------------------------------------------------------------------------- class FontManager { public: FontManager(); ~FontManager(); Font* LoadFont( CString sFontOrTextureFilePath, CString sChars = "" ); bool IsFontLoaded( CString sFontPath ); void UnloadFont( CString sFontPath ); protected: // map from file name to a texture holder std::map m_mapPathToFont; }; extern FontManager* FONT; // global and accessable from anywhere in our program #endif