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

Function isCoreProfile

source/globjects/source/globjects.cpp:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281bool isCoreProfile()
282{
283 if (version()<glbinding::Version(3,2))
284 {
285 return false;
286 }
287
288 return (getInteger(GL_CONTEXT_PROFILE_MASK) & static_cast<unsigned>(GL_CONTEXT_CORE_PROFILE_BIT)) > 0;
289}
290
291const std::set<GLextension> & availableExtensions()
292{

Callers

nothing calls this directly

Calls 3

versionFunction · 0.85
getIntegerFunction · 0.85
VersionClass · 0.50

Tested by

no test coverage detected