You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
1.1 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. #pragma once
  11. //
  12. // The Tiler class
  13. // ---------------
  14. // The Tiler is a static class that manages tilesets.
  15. //
  16. #include <stdint.h>
  17. #include "tileset.h"
  18. namespace lol
  19. {
  20. class Tiler
  21. {
  22. public:
  23. static TileSet *Register(String const &path, ivec2 size, ivec2 count);
  24. static TileSet *Register(char const *path, ivec2 size, ivec2 count);
  25. static TileSet *Register(String const &path);
  26. static TileSet *Register(char const *path);
  27. static TileSet *Register(String const &path, Image* image, ivec2 size, ivec2 count);
  28. static TileSet *Register(char const *path, Image* image, ivec2 size, ivec2 count);
  29. static TileSet *Register(String const &path, Image* image);
  30. static TileSet *Register(char const *path, Image* image);
  31. static void Deregister(TileSet *);
  32. private:
  33. Tiler() {}
  34. };
  35. } /* namespace lol */