00001
#ifndef FONTMANAGER_H
00002
#define FONTMANAGER_H
00003
00004
#pragma once
00005
#include "ResourceManager.h"
00006
#include "BitmapFont.h"
00007
00009
00014 class CFontManager :
public CResourceManager,
public CSingleton<CFontManager>
00015 {
00016
public:
00017
CFontManager();
00018
virtual ~
CFontManager();
00019
00020
public:
00029
virtual CCustomFont *
LoadResource(
TiXmlNode *pDataNode, CString strFilename, UINT uiID = 0, CString strName =
"");
00038
virtual CCustomFont *
GetResource(
int uiIndex,
int uiID = -1, CString strName =
"", CString strFilename =
"");
00046
virtual CCustomFont *
AddResource(CString strName, UINT uiID = 0, eEntityType ResourceType = Entity_Default);
00052
int RemoveResource(
CCustomFont *pFont);
00053
00059
virtual int LoadXML(
TiXmlNode *pDataNode, CString strFilename);
00065
virtual int SaveXML(
TiXmlNode *pDataNode, CString strFilename);
00070
virtual void Destroy();
00075
virtual bool IsOfType(eEntityType eType);
00076 };
00077
00078
#endif