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

Method MeshObject

libs/drape/mesh_object.cpp:156–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154};
155
156MeshObject::MeshObject(ref_ptr<dp::GraphicsContext> context, DrawPrimitive drawPrimitive, std::string const & debugName)
157 : m_drawPrimitive(drawPrimitive)
158 , m_debugName(debugName)
159{
160 auto const apiVersion = context->GetApiVersion();
161 if (apiVersion == dp::ApiVersion::OpenGLES3)
162 {
163 InitForOpenGL();
164 }
165 else if (apiVersion == dp::ApiVersion::Metal)
166 {
167#if defined(OMIM_METAL_AVAILABLE)
168 InitForMetal();
169#endif
170 }
171 else if (apiVersion == dp::ApiVersion::Vulkan)
172 {
173 InitForVulkan(context);
174 }
175 CHECK(m_impl != nullptr, ());
176}
177
178MeshObject::~MeshObject()
179{

Callers

nothing calls this directly

Calls 1

GetApiVersionMethod · 0.45

Tested by

no test coverage detected