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

Method GetTextureUnit

Rendering/Core/vtkGenericVertexAttributeMapping.cxx:158–166  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

156
157//------------------------------------------------------------------------------
158int vtkGenericVertexAttributeMapping::GetTextureUnit(unsigned int index)
159{
160 if (index >= this->Internal->Mappings.size())
161 {
162 vtkErrorMacro("Invalid index " << index);
163 return 0;
164 }
165 return this->Internal->Mappings[index].TextureUnit;
166}
167
168//------------------------------------------------------------------------------
169void vtkGenericVertexAttributeMapping::PrintSelf(ostream& os, vtkIndent indent)

Callers 6

RenderOverlayMethod · 0.45
RenderOverlayMethod · 0.45
DrawPointSpritesMethod · 0.45
CoreDrawTrianglesMethod · 0.45
DrawStringMethod · 0.45
DrawImageMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected