Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

48 wiersze
1.2 KiB

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2013 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. //
  11. // The Tiler class
  12. // ---------------
  13. // The Tiler is a static class that manages tilesets.
  14. //
  15. #if !defined __LOL_TILER_H__
  16. #define __LOL_TILER_H__
  17. #include <stdint.h>
  18. #include "tileset.h"
  19. namespace lol
  20. {
  21. class Tiler
  22. {
  23. public:
  24. static TileSet *Register(String const &path, ivec2 size, ivec2 count);
  25. static TileSet *Register(char const *path, ivec2 size, ivec2 count);
  26. static TileSet *Register(String const &path);
  27. static TileSet *Register(char const *path);
  28. static TileSet *Register(String const &path, Image* image, ivec2 size, ivec2 count);
  29. static TileSet *Register(char const *path, Image* image, ivec2 size, ivec2 count);
  30. static TileSet *Register(String const &path, Image* image);
  31. static TileSet *Register(char const *path, Image* image);
  32. static void Deregister(TileSet *);
  33. private:
  34. Tiler() {}
  35. };
  36. } /* namespace lol */
  37. #endif // __LOL_TILER_H__