MCPcopy Create free account
hub / github.com/cginternals/glbinding / getExtension

Method getExtension

source/glbinding-aux/source/Meta.cpp:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95GLextension Meta::getExtension(const std::string & glextension)
96{
97 const auto index = alphabeticalGroupIndex(glextension, 3);
98 const auto & map = Meta_ExtensionsByStringMaps[index];
99 const auto i = map.find(glextension);
100
101 if (i != map.cend())
102 {
103 return i->second;
104 }
105
106 return GLextension::UNKNOWN;
107}
108
109std::set<GLextension> Meta::extensions()
110{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected