23#ifndef vtkGLTFDocumentLoaderInternals_h
24#define vtkGLTFDocumentLoaderInternals_h
27#include <vtk_nlohmannjson.h>
28#include VTK_NLOHMANN_JSON(json.hpp)
63 bool LoadNodeExtensions(
77 const nlohmann::json& root, std::vector<char>& buffer,
const std::string& glTFFileName);
83 bool LoadFileMetaData(
const std::string& fileName, nlohmann::json& gltfRoot);
186 std::string alphaModeString);
192 bool LoadKHRLightsPunctualNodeExtension(
const nlohmann::json& root,
199 bool LoadKHRLightsPunctualExtension(
205 bool LoadKHRLightsPunctualExtensionLight(
vtkGLTFDocumentLoaderInternals()=default
static const unsigned short GL_TRIANGLES
bool LoadBuffers(bool firstBufferIsGLB)
Reads the model's buffer metadata, then uses it to load all buffers into the model.
vtkGLTFDocumentLoader * Self
bool LoadModelMetaDataFromFile(std::string &FileName, std::vector< std::string > &usedExtensions)
Reset internal Model struct, and serialize glTF metadata (all json information) into it.
static const unsigned short GL_TRIANGLE_FAN
static const unsigned short GL_TRIANGLE_STRIP
static const unsigned short GL_LINE_LOOP
static const unsigned short GL_LINES
static const unsigned short GL_LINE_STRIP
static const unsigned short GL_POINTS
Deserialize a GLTF model file.
AccessorType
Defines an accessor's type.
This struct describes an accessor.sparse glTF object.
This struct describes an accessor glTF object.
This struct describes a glTF animation object.
This struct describes a glTF bufferView object.
This struct describes a glTF camera object.
This struct contains extension metadata.
This struct describes a glTF image object.
This struct describes a glTF material object.
This struct describes a glTF mesh object.
This struct describes a glTF node object.
This struct describes a glTF primitive object.
This struct describes a glTF sampler object.
This struct describes a glTF scene object.
This struct describes a glTF asset.
This struct describes a glTF textureInfo object, mostly used in material descriptions They contain tw...
This struct describes a glTF texture object.