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

Method AddAttributeArray

Rendering/OpenGL2/vtkOpenGLVertexArrayObject.cxx:242–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bool vtkOpenGLVertexArrayObject::AddAttributeArray(vtkShaderProgram* program,
243 vtkOpenGLVertexBufferObject* buffer, const std::string& name, int offset, bool normalize)
244{
245 return this->AddAttributeArrayWithDivisor(program, buffer, name, offset, buffer->GetStride(),
246 buffer->GetDataType(), buffer->GetNumberOfComponents(), normalize, 0, false);
247}
248
249bool vtkOpenGLVertexArrayObject::AddAttributeArrayWithDivisor(vtkShaderProgram* program,
250 vtkOpenGLBufferObject* buffer, const std::string& name, int offset, size_t stride,

Callers 11

RenderTrianglesMethod · 0.80
PrepFullScreenVAOMethod · 0.80
BindAttributesMethod · 0.80
GlyphRenderInstancesMethod · 0.80
RunCullingShadersMethod · 0.80
ProjectTetrahedraMethod · 0.80
SetPositionAndTCoordsMethod · 0.80
SetPositionAndTCoordsMethod · 0.80
RenderQuadFunction · 0.80
BuildMethod · 0.80

Calls 4

GetStrideMethod · 0.80
GetDataTypeMethod · 0.45
GetNumberOfComponentsMethod · 0.45

Tested by

no test coverage detected