| 215 | { VTK_UNSIGNED_SHORT, GL_UNSIGNED_SHORT }, { VTK_FLOAT, GL_FLOAT } }; |
| 216 | |
| 217 | int GetGLType(vtkDataArray* da) |
| 218 | { |
| 219 | int vtkType = da->GetDataType(); |
| 220 | if (vtkToGLType.find(vtkType) == vtkToGLType.end()) |
| 221 | { |
| 222 | vtkLog(WARNING, "No GL type mapping for VTK type: " << vtkType); |
| 223 | return GL_UNSIGNED_BYTE; |
| 224 | } |
| 225 | return vtkToGLType[vtkType]; |
| 226 | } |
| 227 | |
| 228 | std::string WriteTextureBufferAndView(const std::string& gltfFullDir, |
| 229 | const std::string& textureFullPath, bool inlineData, bool copyTextures, nlohmann::json& buffers, |
no test coverage detected