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

Method UpdateIndexBuffer

libs/drape/mesh_object.cpp:233–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void MeshObject::UpdateIndexBuffer(ref_ptr<dp::GraphicsContext> context, std::vector<uint16_t> const & indices)
234{
235 CHECK(!indices.empty(), ("Use SetIndexBuffer() to reset index buffer"));
236 CHECK_LESS_OR_EQUAL(indices.size(), m_indices.size(), ());
237 memcpy(m_indices.data(), indices.data(), indices.size() * sizeof(uint16_t));
238
239 CHECK(m_impl != nullptr, ());
240 m_impl->UpdateIndexBuffer(context);
241}
242
243void MeshObject::DrawPrimitivesSubset(ref_ptr<dp::GraphicsContext> context, uint32_t vertexCount, uint32_t startVertex)
244{

Callers 1

RenderMethod · 0.45

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected