00001
00002
00003 #ifndef _FONT_MANAGER_H
00004 #define _FONT_MANAGER_H
00005
00006
00007 #include "hash_hack.h"
00008 #include "stlextdefs.h"
00009 #include "universal_manager.h"
00010 #include "font.h"
00011 #include "task.h"
00012
00013
00014
00015
00033 class FontManager : public UniversalManager<Font, FontManager>, public Task
00034 {
00035 protected:
00036 friend class Singleton<FontManager>;
00037
00038 FontManager();
00039 ~FontManager();
00040
00041 public:
00042
00043
00052 TRef get(const char* font_name, int size);
00053
00060 virtual void update(int dtime, int atime);
00061
00062 private:
00063 int mNextCleanup;
00064
00065 };
00066
00067 typedef FontManager::TUniversalManager::TRef FontRef;
00068
00069
00070
00071 #ifdef INSTANTIATE_TEMPLATE
00072 template class Singleton<FontManager>;
00073 #endif
00074
00075
00076 #endif // _FONT_MANAGER_H