Assimp  v3.1.1 (June 2014)
glTFImporter.cpp File Reference

Functions

static bool CheckValidFacesIndices (aiFace *faces, unsigned nFaces, unsigned nVerts)
 
static void CopyValue (const glTF::mat4 &v, aiMatrix4x4 &o)
 
static void CopyValue (const glTF::vec3 &v, aiVector3D &out)
 
static void CopyValue (const glTF::vec4 &v, aiColor3D &out)
 
static void CopyValue (const glTF::vec4 &v, aiColor4D &out)
 
static void CopyValue (const glTF::vec4 &v, aiQuaternion &out)
 
aiNodeImportNode (aiScene *pScene, glTF::Asset &r, std::vector< unsigned int > &meshOffsets, glTF::Ref< glTF::Node > &ptr)
 
static void SetFace (aiFace &face, int a)
 
static void SetFace (aiFace &face, int a, int b)
 
static void SetFace (aiFace &face, int a, int b, int c)
 
void SetMaterialColorProperty (std::vector< int > &embeddedTexIdxs, Asset &r, glTF::TexProperty prop, aiMaterial *mat, aiTextureType texType, const char *pKey, unsigned int type, unsigned int idx)
 

Variables

static const aiImporterDesc desc
 

Function Documentation

◆ CheckValidFacesIndices()

static bool CheckValidFacesIndices ( aiFace faces,
unsigned  nFaces,
unsigned  nVerts 
)
inlinestatic

◆ CopyValue() [1/5]

static void CopyValue ( const glTF::mat4 &  v,
aiMatrix4x4 o 
)
static

◆ CopyValue() [2/5]

static void CopyValue ( const glTF::vec3 &  v,
aiVector3D out 
)
static

◆ CopyValue() [3/5]

static void CopyValue ( const glTF::vec4 &  v,
aiColor3D out 
)
static

◆ CopyValue() [4/5]

static void CopyValue ( const glTF::vec4 &  v,
aiColor4D out 
)
static

◆ CopyValue() [5/5]

static void CopyValue ( const glTF::vec4 &  v,
aiQuaternion out 
)
static

◆ ImportNode()

aiNode* ImportNode ( aiScene pScene,
glTF::Asset r,
std::vector< unsigned int > &  meshOffsets,
glTF::Ref< glTF::Node > &  ptr 
)

◆ SetFace() [1/3]

static void SetFace ( aiFace face,
int  a 
)
inlinestatic

◆ SetFace() [2/3]

static void SetFace ( aiFace face,
int  a,
int  b 
)
inlinestatic

◆ SetFace() [3/3]

static void SetFace ( aiFace face,
int  a,
int  b,
int  c 
)
inlinestatic

◆ SetMaterialColorProperty()

void SetMaterialColorProperty ( std::vector< int > &  embeddedTexIdxs,
Asset r,
glTF::TexProperty  prop,
aiMaterial mat,
aiTextureType  texType,
const char *  pKey,
unsigned int  type,
unsigned int  idx 
)
inline

Variable Documentation

◆ desc

aiImporterFlags_SupportCompressedFlavour
Indicates that there is a compressed encoding of the file format; and that it is supported.
Definition: importerdesc.h:63
aiImporterFlags_LimitedSupport
Indicates that the importer reads only a very particular subset of the file format.
Definition: importerdesc.h:69
aiImporterFlags_Experimental
Indicates that the importer is highly experimental and should be used with care.
Definition: importerdesc.h:75
aiImporterFlags_SupportTextFlavour
Indicates that there is a textual encoding of the file format; and that it is supported.
Definition: importerdesc.h:55
aiImporterFlags_SupportBinaryFlavour
Indicates that there is a binary encoding of the file format; and that it is supported.
Definition: importerdesc.h:59