Exemple #1
0
void Purity::Scene::draw(Purity::RenderTarget& target) const
{
    mMutex.lock();

    target.draw(*mMap);

    target.draw(*mObjectManager);

    mMutex.unlock();
}
Exemple #2
0
void Purity::Layer::draw(Purity::RenderTarget& target) const
{
    for (const auto& it : mTiles)
    {
        target.draw(*it.second);
    }
}