MCPcopy Create free account
hub / github.com/comaps/comaps / Advance

Method Advance

libs/drape/attribute_provider.cpp:55–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void AttributeProvider::Advance(uint32_t vertexCount)
56{
57 ASSERT_LESS_OR_EQUAL(vertexCount, m_vertexCount, ());
58 CHECK_STREAMS;
59
60 if (m_vertexCount != vertexCount)
61 {
62 for (size_t i = 0; i < GetStreamCount(); ++i)
63 {
64 BindingInfo const & info = m_streams[i].m_binding;
65 uint32_t offset = vertexCount * info.GetElementSize();
66 void * rawPointer = m_streams[i].m_data.get();
67 m_streams[i].m_data = make_ref((void *)(((uint8_t *)rawPointer) + offset));
68 }
69 }
70
71 m_vertexCount -= vertexCount;
72}
73
74void AttributeProvider::InitStream(uint8_t streamIndex, BindingInfo const & bindingInfo, ref_ptr<void> data)
75{

Callers 1

BatchDataMethod · 0.45

Calls 3

make_refFunction · 0.85
getMethod · 0.65
GetElementSizeMethod · 0.45

Tested by

no test coverage detected