MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / enableScreenShader

Method enableScreenShader

GUI/OpenGL/MiniGL.cpp:804–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804void MiniGL::enableScreenShader(const Vector3f& color)
805{
806 Shader& shader = m_shader_screen;
807 shader.begin();
808 glUniform1f(shader.getUniform("width"), static_cast<float>(m_windowWidth));
809 glUniform1f(shader.getUniform("height"), static_cast<float>(m_windowHeight));
810 glUniform3fv(shader.getUniform("color"), 1, &color(0));
811}
812
813void MiniGL::disableScreenShader()
814{

Callers

nothing calls this directly

Calls 2

getUniformMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected