Files
itgmania212121/stepmania/src/FontManager.h
T
2002-11-16 08:07:38 +00:00

40 lines
1003 B
C++

#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 <map>
//-----------------------------------------------------------------------------
// 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<CString, Font*> m_mapPathToFont;
};
extern FontManager* FONT; // global and accessable from anywhere in our program
#endif