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

Method GetOpenGLMode

Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx:4496–4507  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4494
4495//------------------------------------------------------------------------------
4496int vtkOpenGLPolyDataMapper::GetOpenGLMode(int representation, int primType)
4497{
4498 if (representation == VTK_POINTS || primType == PrimitivePoints || primType == PrimitiveVertices)
4499 {
4500 return GL_POINTS;
4501 }
4502 if (representation == VTK_WIREFRAME || primType == PrimitiveLines)
4503 {
4504 return GL_LINES;
4505 }
4506 return GL_TRIANGLES;
4507}
4508
4509//------------------------------------------------------------------------------
4510int vtkOpenGLPolyDataMapper::GetPointPickingPrimitiveSize(int primType)

Callers 11

HaveWideLinesMethod · 0.95
DrawingEdgesMethod · 0.95
DrawingTubesOrSpheresMethod · 0.95
DrawingSpheresMethod · 0.95
DrawingTubesMethod · 0.95
DrawingPointsMethod · 0.95
RenderPieceDrawMethod · 0.95
RenderPieceDrawMethod · 0.80
GlyphRenderMethod · 0.80
GlyphRenderInstancesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected