Conscience Core
Namespaces | Macros | Functions
CscGlTFParser.cpp File Reference
#include "CscGlTFParser.h"
#include "../Common/hull.h"
#include "Util/crypto.h"
#include <algorithm>
#include <Util/geom.h>

Namespaces

 conscience_core
 
 conscience_core::core_objects
 
 conscience_core::core_objects::exchange
 
 conscience_core::core_objects::exchange::gltf
 

Macros

#define GLTF_COMPONENT_TYPE_BYTE   5120
 
#define GLTF_COMPONENT_TYPE_UNSIGNED_BYTE   5121
 
#define GLTF_COMPONENT_TYPE_SHORT   5122
 
#define GLTF_COMPONENT_TYPE_UNSIGNED_SHORT   5123
 
#define GLTF_COMPONENT_TYPE_INT   5124
 
#define GLTF_COMPONENT_TYPE_UNSIGNED_INT   5125
 
#define GLTF_COMPONENT_TYPE_FLOAT   5126
 
#define GLTF_COMPONENT_TYPE_DOUBLE   5130
 

Functions

CscJsonObjectReaderconscience_core::core_objects::exchange::gltf::getAccessor (GltfParseContext &context, size_t accessorIndex)
 
CscJsonObjectReaderconscience_core::core_objects::exchange::gltf::getBufferView (GltfParseContext &context, size_t bufferViewIndex)
 
CscJsonObjectReaderconscience_core::core_objects::exchange::gltf::getBuffer (GltfParseContext &context, size_t bufferIndex)
 
vector< unsigned char > * conscience_core::core_objects::exchange::gltf::getBufferData (GltfParseContext &context, int bufferIndex)
 
template<typename TData >
vector< TData > conscience_core::core_objects::exchange::gltf::collectScalarAccessorData (GltfParseContext &context, CscJsonObjectReader *accessor)
 
template<typename TData >
vector< unsigned int > conscience_core::core_objects::exchange::gltf::toVectorOfUInt (const vector< TData > &values)
 
vector< unsigned int > conscience_core::core_objects::exchange::gltf::collectScalarAccessorDataToUInt (GltfParseContext &context, CscJsonObjectReader *accessor)
 
vector< float > conscience_core::core_objects::exchange::gltf::collectVec3Values (GltfParseContext &context, CscJsonObjectReader *accessor)
 
void conscience_core::core_objects::exchange::gltf::getNodeTransform (CscJsonObjectReader &node, double nodeTransform[4][4])
 
void conscience_core::core_objects::exchange::gltf::collectParents (GltfParseContext &context, unsigned currentNodeIndex, vector< unsigned > &parents)
 

Macro Definition Documentation

◆ GLTF_COMPONENT_TYPE_BYTE

#define GLTF_COMPONENT_TYPE_BYTE   5120

◆ GLTF_COMPONENT_TYPE_DOUBLE

#define GLTF_COMPONENT_TYPE_DOUBLE   5130

◆ GLTF_COMPONENT_TYPE_FLOAT

#define GLTF_COMPONENT_TYPE_FLOAT   5126

◆ GLTF_COMPONENT_TYPE_INT

#define GLTF_COMPONENT_TYPE_INT   5124

◆ GLTF_COMPONENT_TYPE_SHORT

#define GLTF_COMPONENT_TYPE_SHORT   5122

◆ GLTF_COMPONENT_TYPE_UNSIGNED_BYTE

#define GLTF_COMPONENT_TYPE_UNSIGNED_BYTE   5121

◆ GLTF_COMPONENT_TYPE_UNSIGNED_INT

#define GLTF_COMPONENT_TYPE_UNSIGNED_INT   5125

◆ GLTF_COMPONENT_TYPE_UNSIGNED_SHORT

#define GLTF_COMPONENT_TYPE_UNSIGNED_SHORT   5123