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

Method DisableAttributeArray

Rendering/OpenGL2/vtkShaderProgram.cxx:718–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718bool vtkShaderProgram::DisableAttributeArray(const char* name)
719{
720 GLint location = static_cast<GLint>(this->FindAttributeArray(name));
721 if (location == -1)
722 {
723 this->Error = "Could not disable attribute " + std::string(name) + ". No such attribute.";
724 return false;
725 }
726 glDisableVertexAttribArray(location);
727 return true;
728}
729
730#define BUFFER_OFFSET(i) (reinterpret_cast<char*>(i))
731

Callers

nothing calls this directly

Calls 2

FindAttributeArrayMethod · 0.95
stringClass · 0.50

Tested by

no test coverage detected