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

Method SetVectorTexParameters

Rendering/LICOpenGL2/vtkLineIntegralConvolution2D.cxx:990–1002  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

988
989//------------------------------------------------------------------------------
990void vtkLineIntegralConvolution2D::SetVectorTexParameters(vtkTextureObject* tex)
991{
992 tex->SetBaseLevel(0);
993 tex->SetMaxLevel(0);
994 tex->SetWrapS(vtkTextureObject::ClampToBorder);
995 tex->SetWrapT(vtkTextureObject::ClampToBorder);
996 tex->SetBorderColor(0.0, 0.0, 0.0, 0.0);
997 tex->SetMinificationFilter(vtkTextureObject::Linear);
998 tex->SetMagnificationFilter(vtkTextureObject::Linear);
999 // note : as a side affect it sets the parameters
1000 // that is needed here.
1001 tex->Bind();
1002}
1003
1004//------------------------------------------------------------------------------
1005void vtkLineIntegralConvolution2D::SetComponentIds(int c0, int c1)

Callers 1

ExecuteMethod · 0.95

Calls 1

BindMethod · 0.45

Tested by

no test coverage detected