Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

FontManager.h 626B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*!
  2. * \file include/FontManager.h
  3. * \brief Font manager
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _FONT_MANAGER_H_
  8. #define _FONT_MANAGER_H_
  9. #include <vector>
  10. #include "Font.h"
  11. class FontManager : public Font {
  12. public:
  13. /*!
  14. * \brief Constructs an object of FontManager
  15. */
  16. FontManager();
  17. /*!
  18. * \brief Deconstructs an object of FontManager
  19. */
  20. virtual ~FontManager();
  21. virtual int initialize();
  22. virtual void writeString(FontString &s);
  23. private:
  24. void add(Font *f, const char *e);
  25. int font;
  26. std::vector<Font *> fonts;
  27. std::vector<const char *> extensions;
  28. };
  29. #endif