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 242B

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