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

Method getEnum

source/glbinding-aux/source/Meta.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209GLenum Meta::getEnum(const std::string & glenum)
210{
211 const auto index = alphabeticalGroupIndex(glenum, 3);
212 const auto & map = Meta_EnumsByStringMaps[index];
213 const auto i = map.find(glenum);
214
215 if (i != map.cend())
216 {
217 return i->second;
218 }
219
220 return static_cast<GLenum>(static_cast<unsigned int>(-1));
221}
222
223const std::set<GLextension> Meta::extensions(const Version & version)
224{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected