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

Method getBitfield

source/glbinding-aux/source/Meta.cpp:195–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195GLbitfield Meta::getBitfield(const std::string & glbitfield)
196{
197 const auto index = alphabeticalGroupIndex(glbitfield, 3);
198 const auto & map = Meta_BitfieldsByStringMaps[index];
199 const auto i = map.find(glbitfield);
200
201 if (i != map.cend())
202 {
203 return i->second;
204 }
205
206 return static_cast<GLbitfield>(-1);
207}
208
209GLenum Meta::getEnum(const std::string & glenum)
210{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected