use SpriteStore from the SpriteAtlas

This commit is contained in:
Konstantin Käfer
2015-07-01 18:13:16 +02:00
parent d2ee014c6e
commit afaf74e41a
14 changed files with 91 additions and 227 deletions

View File

@@ -32,7 +32,7 @@ public:
transform_.setLatLngZoom({0, 0}, 16);
const std::string style = util::read_file("test/fixtures/resources/style.json");
style_ = std::make_unique<Style>(style, "", util::RunLoop::getLoop());
style_ = std::make_unique<Style>(style, "", data_, util::RunLoop::getLoop());
style_->setObserver(this);
}
@@ -46,7 +46,7 @@ public:
data_.setAnimationTime(now);
transform_.updateTransitions(now);
style_->update(data_, transform_.getState(), texturePool_);
style_->update(transform_.getState(), texturePool_);
}
// Style::Observer implementation.