MCPcopy Create free account
hub / github.com/SFML/SFML / setUniform

Method setUniform

src/SFML/Graphics/Shader.cpp:534–539  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

532
533////////////////////////////////////////////////////////////
534void Shader::setUniform(const std::string& name, float x)
535{
536 const UniformBinder binder(*this, name);
537 if (binder.location != -1)
538 glCheck(GLEXT_glUniform1f(binder.location, x));
539}
540
541
542////////////////////////////////////////////////////////////

Callers 9

PixelateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
tryLoadEdgeFunction · 0.80
tryLoadGeometryFunction · 0.80
mainFunction · 0.80

Calls 3

getMaxTextureUnitsFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected