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

Function vtkGetVTKType

Rendering/OpenGL2/vtkTextureObject.cxx:700–728  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

698
699//------------------------------------------------------------------------------
700static int vtkGetVTKType(GLenum gltype)
701{
702 // DON'T DEAL with VTK_CHAR as this is platform dependent.
703 switch (gltype)
704 {
705 case GL_BYTE:
706 return VTK_SIGNED_CHAR;
707
708 case GL_UNSIGNED_BYTE:
709 return VTK_UNSIGNED_CHAR;
710
711 case GL_SHORT:
712 return VTK_SHORT;
713
714 case GL_UNSIGNED_SHORT:
715 return VTK_UNSIGNED_SHORT;
716
717 case GL_INT:
718 return VTK_INT;
719
720 case GL_UNSIGNED_INT:
721 return VTK_UNSIGNED_INT;
722
723 case GL_FLOAT:
724 return VTK_FLOAT;
725 }
726
727 return 0;
728}
729
730void vtkTextureObject::GetShiftAndScale(float& shift, float& scale)
731{

Callers 3

GetShiftAndScaleMethod · 0.85
GetVTKDataTypeMethod · 0.85
DownloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected