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

Method DrawPrimitivesIndexed

libs/drape/mesh_object.cpp:143–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 void DrawPrimitivesIndexed(ref_ptr<dp::GraphicsContext> context, uint32_t indexCount, uint32_t startIndex) override
144 {
145 UNUSED_VALUE(context);
146 CHECK(m_indexBuffer != 0, ());
147 GLFunctions::glDrawElements(GetGLDrawPrimitive(m_mesh->m_drawPrimitive), sizeof(uint16_t), indexCount, startIndex);
148 }
149
150private:
151 ref_ptr<dp::MeshObject> m_mesh;

Callers 2

DrawPrimitivesMethod · 0.45

Calls 1

GetGLDrawPrimitiveFunction · 0.85

Tested by

no test coverage detected