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

37 行
659 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://www.wtfpl.net/ for more details.
  9. //
  10. #pragma once
  11. //
  12. // The Forge class
  13. // ---------------
  14. // The Forge is a static class that manages fonts.
  15. //
  16. #include "font.h"
  17. namespace lol
  18. {
  19. class Forge
  20. {
  21. public:
  22. static int Register(char const *path);
  23. static void Deregister(int id);
  24. static Font *GetFont(int id);
  25. private:
  26. Forge() {}
  27. };
  28. } /* namespace lol */