A 2D tile-based sandbox game.
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.

TileAtlas.h 310B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <memory>
  3. namespace Cygnet {
  4. struct AtlasState;
  5. class TileAtlas {
  6. public:
  7. TileAtlas();
  8. TileAtlas(TileAtlas &&);
  9. ~TileAtlas();
  10. void addTile(size_t tileId, const void *data);
  11. const unsigned char *getImage(size_t *w, size_t *h);
  12. private:
  13. std::unique_ptr<AtlasState> state_;
  14. };
  15. }