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

Method setUniformArray

src/SFML/Graphics/Shader.cpp:700–705  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

698
699////////////////////////////////////////////////////////////
700void Shader::setUniformArray(const std::string& name, const float* scalarArray, std::size_t length)
701{
702 const UniformBinder binder(*this, name);
703 if (binder.location != -1)
704 glCheck(GLEXT_glUniform1fv(binder.location, static_cast<GLsizei>(length), scalarArray));
705}
706
707
708////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

flattenFunction · 0.85
copyMatrixFunction · 0.85

Tested by

no test coverage detected