Assimp  v4.1. (December 2018)
glTF2Importer.cpp File Reference

Functions

static void CopyValue (const glTF2::vec4 &v, aiColor4D &out)
 
static void CopyValue (const glTF2::vec3 &v, aiColor4D &out)
 
static void CopyValue (const glTF2::vec3 &v, aiVector3D &out)
 
static void CopyValue (const glTF2::vec4 &v, aiQuaternion &out)
 
static void CopyValue (const glTF2::mat4 &v, aiMatrix4x4 &o)
 
aiNodeImportNode (aiScene *pScene, glTF2::Asset &r, std::vector< unsigned int > &meshOffsets, glTF2::Ref< glTF2::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 (Asset &, vec4 &prop, aiMaterial *mat, const char *pKey, unsigned int type, unsigned int idx)
 
void SetMaterialColorProperty (Asset &, vec3 &prop, aiMaterial *mat, const char *pKey, unsigned int type, unsigned int idx)
 
void SetMaterialTextureProperty (std::vector< int > &embeddedTexIdxs, Asset &, glTF2::TextureInfo prop, aiMaterial *mat, aiTextureType texType, unsigned int texSlot=0)
 

Variables

static const aiImporterDesc desc
 

Function Documentation

◆ CopyValue() [1/5]

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

◆ CopyValue() [2/5]

static void CopyValue ( const glTF2::vec3 &  v,
aiColor4D out 
)
static

◆ CopyValue() [3/5]

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

◆ CopyValue() [4/5]

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

◆ CopyValue() [5/5]

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

◆ ImportNode()

aiNode* ImportNode ( aiScene pScene,
glTF2::Asset r,
std::vector< unsigned int > &  meshOffsets,
glTF2::Ref< glTF2::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() [1/2]

void SetMaterialColorProperty ( Asset ,
vec4 &  prop,
aiMaterial mat,
const char *  pKey,
unsigned int  type,
unsigned int  idx 
)
inline

◆ SetMaterialColorProperty() [2/2]

void SetMaterialColorProperty ( Asset ,
vec3 &  prop,
aiMaterial mat,
const char *  pKey,
unsigned int  type,
unsigned int  idx 
)
inline

◆ SetMaterialTextureProperty()

void SetMaterialTextureProperty ( std::vector< int > &  embeddedTexIdxs,
Asset ,
glTF2::TextureInfo  prop,
aiMaterial mat,
aiTextureType  texType,
unsigned int  texSlot = 0 
)
inline

Variable Documentation

◆ desc

const aiImporterDesc desc
static
Initial value:
= {
"glTF2 Importer",
"",
"",
"",
0,
0,
0,
0,
"gltf glb"
}
Indicates that the importer is highly experimental and should be used with care.
Definition: importerdesc.h:77
Indicates that the importer reads only a very particular subset of the file format.
Definition: importerdesc.h:71
Indicates that there is a binary encoding of the file format; and that it is supported.
Definition: importerdesc.h:61
Indicates that there is a textual encoding of the file format; and that it is supported.
Definition: importerdesc.h:57