use SpriteStore from the SpriteAtlas
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user