From a3b8b93f874167e9ab710aec2e6672f243de6415 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Wed, 7 Dec 2016 12:38:40 +0300 Subject: Added attribute provider reuse --- drape/attribute_provider.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'drape/attribute_provider.cpp') 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 data) +{ + ASSERT_LESS(streamIndex, GetStreamCount(), ()); + m_streams[streamIndex].m_data = data; + INIT_STREAM(streamIndex); +} + #ifdef DEBUG void AttributeProvider::CheckStreams() const { -- cgit v1.2.3