Files
itgmania212121/stepmania/src/FontManager.h
T

37 lines
964 B
C++

#pragma once
/*
-----------------------------------------------------------------------------
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