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

Function GetGLDrawPrimitive

libs/drape/mesh_object.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace
16{
17glConst GetGLDrawPrimitive(dp::MeshObject::DrawPrimitive drawPrimitive)
18{
19 switch (drawPrimitive)
20 {
21 case dp::MeshObject::DrawPrimitive::Triangles: return gl_const::GLTriangles;
22 case dp::MeshObject::DrawPrimitive::TriangleStrip: return gl_const::GLTriangleStrip;
23 case dp::MeshObject::DrawPrimitive::LineStrip: return gl_const::GLLineStrip;
24 }
25 UNREACHABLE();
26}
27} // namespace
28
29namespace dp

Callers 2

DrawPrimitivesMethod · 0.85
DrawPrimitivesIndexedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected