MCPcopy Create free account
hub / github.com/Kitware/VTK / SetUniform3f

Method SetUniform3f

Rendering/OpenGL2/vtkShaderProgram.cxx:958–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956}
957
958bool vtkShaderProgram::SetUniform3f(const char* name, const float v[3])
959{
960 GLint location = static_cast<GLint>(this->FindUniform(name));
961 if (location == -1)
962 {
963 this->Error = "Could not set uniform (does not exist) ";
964 this->Error += name;
965 return false;
966 }
967 glUniform3fv(location, 1, v);
968 return true;
969}
970
971bool vtkShaderProgram::SetUniform3f(const char* name, const double v[3])
972{

Callers 15

LoadMethod · 0.45
UpdateUniformsMethod · 0.45
GlyphRenderMethod · 0.45
SetShaderParametersMethod · 0.45
EDLShadeHighMethod · 0.45
EDLShadeLowMethod · 0.45
LoadMethod · 0.45

Calls 1

FindUniformMethod · 0.95

Tested by 4

vtkShaderCallbackFunction · 0.36
UnitTestOpenGLUniformsFunction · 0.36
ExecuteMethod · 0.36
ExecuteMethod · 0.36