diff options
Diffstat (limited to 'drape/attribute_provider.cpp')
-rw-r--r-- | drape/attribute_provider.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drape/attribute_provider.cpp b/drape/attribute_provider.cpp index 1271c8feb0..768bcee738 100644 --- a/drape/attribute_provider.cpp +++ b/drape/attribute_provider.cpp @@ -84,6 +84,18 @@ void AttributeProvider::InitStream(uint8_t streamIndex, INIT_STREAM(streamIndex); } +void AttributeProvider::Reset(uint32_t vertexCount) +{ + m_vertexCount = vertexCount; +} + +void AttributeProvider::UpdateStream(uint8_t streamIndex, ref_ptr<void> data) +{ + ASSERT_LESS(streamIndex, GetStreamCount(), ()); + m_streams[streamIndex].m_data = data; + INIT_STREAM(streamIndex); +} + #ifdef DEBUG void AttributeProvider::CheckStreams() const { |