void Purity::Scene::draw(Purity::RenderTarget& target) const { mMutex.lock(); target.draw(*mMap); target.draw(*mObjectManager); mMutex.unlock(); }
void Purity::Layer::draw(Purity::RenderTarget& target) const { for (const auto& it : mTiles) { target.draw(*it.second); } }