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

Method EnableAttributeArray

Rendering/OpenGL2/vtkShaderProgram.cxx:706–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706bool vtkShaderProgram::EnableAttributeArray(const char* name)
707{
708 GLint location = static_cast<GLint>(this->FindAttributeArray(name));
709 if (location == -1)
710 {
711 this->Error = "Could not enable attribute " + std::string(name) + ". No such attribute.";
712 return false;
713 }
714 glEnableVertexAttribArray(location);
715 return true;
716}
717
718bool vtkShaderProgram::DisableAttributeArray(const char* name)
719{

Callers 1

RenderVolumeGeometryMethod · 0.45

Calls 2

FindAttributeArrayMethod · 0.95
stringClass · 0.50

Tested by

no test coverage detected