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

Method isUsed

source/globjects/source/Program.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool Program::isUsed() const
108{
109 GLuint currentProgram = static_cast<GLuint>(getInteger(GL_CURRENT_PROGRAM));
110
111 return currentProgram > 0 && currentProgram == id();
112}
113
114bool Program::isLinked() const
115{

Callers

nothing calls this directly

Calls 1

getIntegerFunction · 0.85

Tested by

no test coverage detected