00001 /* Crown and Cutlass 00002 * FontResource Header 00003 */ 00004 00005 #if !defined ( _FONT_RESOURCE_H_ ) 00006 #define _FONT_RESOURCE_H_ 00007 00008 #include <string> 00009 #include <guichan.hpp> 00010 #include "IResource.h" 00011 00012 class FontResource: public IResource { 00013 public: 00014 FontResource(std::string name, std::string filename, std::string characters); 00015 ~FontResource(); 00016 00017 std::string GetType(); 00018 00019 void Load(); 00020 void Unload(); 00021 00022 gcn::ImageFont *GetImageFont(); 00023 00024 static const std::string s_type; 00025 00026 private: 00027 std::string m_filename; 00028 std::string m_characters; 00029 00030 gcn::ImageFont *m_font; 00031 }; 00032 00033 #endif
1.4.7