Bladeren bron

TileAtlas move ctor

feature/replace-renderer
Martin Dørum 3 jaren geleden
bovenliggende
commit
e29c4f887b
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1
    0
      libcygnet/include/cygnet/TileAtlas.h
  2. 1
    0
      libcygnet/src/TileAtlas.cc

+ 1
- 0
libcygnet/include/cygnet/TileAtlas.h Bestand weergeven

@@ -9,6 +9,7 @@ struct AtlasState;
class TileAtlas {
public:
TileAtlas();
TileAtlas(TileAtlas &&);
~TileAtlas();

void addTile(size_t tileId, const void *data);

+ 1
- 0
libcygnet/src/TileAtlas.cc Bestand weergeven

@@ -25,6 +25,7 @@ TileAtlas::TileAtlas(): state_(std::make_unique<AtlasState>()) {
state_->tilesPerLine = std::min(size / SwanCommon::TILE_SIZE, 256);
}

TileAtlas::TileAtlas(TileAtlas &&) = default;
TileAtlas::~TileAtlas() = default;

void TileAtlas::addTile(size_t tileId, const void *data) {

Laden…
Annuleren
Opslaan