TileMap.cpp
user_6225994
plain_text
a year ago
355 B
2
Indexable
Never
// // Created by Jakub Kosmaty on 21/05/2020. // #include "TileMap.h" void TileMap::draw(sf::RenderTarget &target, sf::RenderStates states) const { for (int i = 0; i < this->layers.size(); i++) { this->layers[i]->draw(target, states); } } TileMap::~TileMap() { for (int i = 0; i < this->layers.size(); i++) { delete this->layers[i]; } }