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

Method DrawPrimitivesSubset

libs/drape/mesh_object.cpp:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void MeshObject::DrawPrimitivesSubset(ref_ptr<dp::GraphicsContext> context, uint32_t vertexCount, uint32_t startVertex)
244{
245 CHECK(m_impl != nullptr, ());
246 CHECK(!m_buffers.empty(), ());
247 auto const & buffer = m_buffers[0];
248 auto const vertexNum = buffer->GetSizeInBytes() / buffer->GetStrideInBytes();
249 CHECK_LESS(startVertex, vertexNum, ());
250 CHECK_LESS_OR_EQUAL(startVertex + vertexCount, vertexNum, ());
251
252 m_impl->DrawPrimitives(context, vertexCount, startVertex);
253}
254
255void MeshObject::DrawPrimitivesSubsetIndexed(ref_ptr<dp::GraphicsContext> context, uint32_t indexCount,
256 uint32_t startIndex)

Callers

nothing calls this directly

Calls 4

GetSizeInBytesMethod · 0.80
GetStrideInBytesMethod · 0.80
emptyMethod · 0.45
DrawPrimitivesMethod · 0.45

Tested by

no test coverage detected