------------------------------------------------------------------------------
| 856 | |
| 857 | //------------------------------------------------------------------------------ |
| 858 | int vtkTextureObject::GetDefaultDataType(int vtk_scalar_type) |
| 859 | { |
| 860 | // DON'T DEAL with VTK_CHAR as this is platform dependent. |
| 861 | switch (vtk_scalar_type) |
| 862 | { |
| 863 | case VTK_SIGNED_CHAR: |
| 864 | return GL_BYTE; |
| 865 | |
| 866 | case VTK_UNSIGNED_CHAR: |
| 867 | return GL_UNSIGNED_BYTE; |
| 868 | |
| 869 | case VTK_SHORT: |
| 870 | return GL_SHORT; |
| 871 | |
| 872 | case VTK_UNSIGNED_SHORT: |
| 873 | return GL_UNSIGNED_SHORT; |
| 874 | |
| 875 | case VTK_INT: |
| 876 | return GL_INT; |
| 877 | |
| 878 | case VTK_UNSIGNED_INT: |
| 879 | return GL_UNSIGNED_INT; |
| 880 | |
| 881 | case VTK_FLOAT: |
| 882 | case VTK_VOID: // used for depth component textures. |
| 883 | return GL_FLOAT; |
| 884 | } |
| 885 | return 0; |
| 886 | } |
| 887 | |
| 888 | //------------------------------------------------------------------------------ |
| 889 | int vtkTextureObject::GetVTKDataType() |
no outgoing calls
no test coverage detected