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

Function GetGLType

IO/Geometry/vtkGLTFWriter.cxx:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 { VTK_UNSIGNED_SHORT, GL_UNSIGNED_SHORT }, { VTK_FLOAT, GL_FLOAT } };
216
217int 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
228std::string WriteTextureBufferAndView(const std::string& gltfFullDir,
229 const std::string& textureFullPath, bool inlineData, bool copyTextures, nlohmann::json& buffers,

Callers 1

WriteMeshFunction · 0.85

Calls 3

GetDataTypeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected