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

Method GetTextureUnitForTexture

Rendering/OpenGL2/vtkOpenGLState.cxx:1830–1841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828}
1829
1830int vtkOpenGLState::GetTextureUnitForTexture(vtkTextureObject* texture)
1831{
1832 // Only deactivate if it isn't already there
1833 typedef std::map<const vtkTextureObject*, int>::const_iterator TRIter;
1834 TRIter found = this->TextureResourceIds.find(texture);
1835 if (found != this->TextureResourceIds.end())
1836 {
1837 return found->second;
1838 }
1839
1840 return -1;
1841}
1842
1843void vtkOpenGLState::VerifyNoActiveTextures()
1844{

Callers 1

GetTextureUnitMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected