UGDK
|
00001 #ifndef HORUSEYE_FRAMEWORK_FONT_H_ 00002 #define HORUSEYE_FRAMEWORK_FONT_H_ 00003 00004 #include <string> 00005 #include <ugdk/math/vector2D.h> 00006 #include <ugdk/graphic.h> 00007 00008 00009 namespace ugdk { 00010 namespace graphic { 00011 00012 class Font { 00013 public: 00014 enum IdentType { 00015 LEFT, 00016 CENTER, 00017 RIGHT 00018 }; 00019 Font(Texture** letters, int fontsize, char ident, bool fancy); 00020 ~Font(); 00021 int id() { return id_; } 00022 IdentType ident() { return ident_; } 00023 Vector2D GetLetterSize(wchar_t letter); 00024 bool IsFancy() { return fancy_;} 00025 00026 private: 00027 int id_; 00028 int size_; 00029 Texture** letters_; 00030 IdentType ident_; 00031 bool fancy_; 00032 }; 00033 00034 00035 } // namespace graphic 00036 } // namespace ugdk 00037 00038 #endif