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

Function isCore

source/tools/glcontexts/main.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool isCore(const Version & version)
43{
44 if (version<glbinding::Version(3,2))
45 {
46 return false;
47 }
48
49 GLint value = 0;
50
51 glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &value);
52
53 return (value & static_cast<unsigned int>(GL_CONTEXT_CORE_PROFILE_BIT)) > 0;
54}
55
56Version printVersionOfContextRequest(
57 const Version & version

Callers 1

Calls 2

VersionClass · 0.50
glGetIntegervFunction · 0.50

Tested by

no test coverage detected