MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / IsActive

Method IsActive

ZEngine/src/Shader.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 bool Shader::IsActive() const {
27 GLint state = 0;
28 glGetIntegerv(GL_CURRENT_PROGRAM, &state);
29 return (state == m_program);
30 }
31
32 std::string_view Shader::GetFilename() const {
33 return m_filename;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected