MCPcopy Create free account
hub / github.com/cginternals/globjects / getCapability

Method getCapability

source/globjects/source/State.cpp:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241Capability* State::getCapability(GLenum capability)
242{
243 const auto it = m_capabilities.find(capability);
244 if (it == m_capabilities.end())
245 {
246 const auto insertedIt = m_capabilities.emplace(capability, new Capability(capability));
247
248 return insertedIt.first->second;
249 }
250
251 return it->second;
252}
253
254std::vector<Capability*> State::capabilities() const
255{

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected