Assimp  v4.1. (December 2018)
Assimp::glTF2Exporter Class Reference

Helper class to export a given scene to an glTF file. More...

Public Member Functions

 glTF2Exporter (const char *filename, IOSystem *pIOSystem, const aiScene *pScene, const ExportProperties *pProperties, bool binary)
 Constructor for a specific scene to export. More...
 
 ~glTF2Exporter ()
 

Protected Member Functions

void ExportAnimations ()
 
void ExportMaterials ()
 
void ExportMeshes ()
 
void ExportMetadata ()
 
unsigned int ExportNode (const aiNode *node, glTF2::Ref< glTF2::Node > &parent)
 
unsigned int ExportNodeHierarchy (const aiNode *n)
 
void ExportScene ()
 
aiReturn GetMatColor (const aiMaterial *mat, glTF2::vec4 &prop, const char *propName, int type, int idx)
 
aiReturn GetMatColor (const aiMaterial *mat, glTF2::vec3 &prop, const char *propName, int type, int idx)
 
void GetMatTex (const aiMaterial *mat, glTF2::Ref< glTF2::Texture > &texture, aiTextureType tt, unsigned int slot)
 
void GetMatTex (const aiMaterial *mat, glTF2::TextureInfo &prop, aiTextureType tt, unsigned int slot)
 
void GetMatTex (const aiMaterial *mat, glTF2::NormalTextureInfo &prop, aiTextureType tt, unsigned int slot)
 
void GetMatTex (const aiMaterial *mat, glTF2::OcclusionTextureInfo &prop, aiTextureType tt, unsigned int slot)
 
void GetMatTexProp (const aiMaterial *mat, unsigned int &prop, const char *propName, aiTextureType tt, unsigned int idx)
 
void GetMatTexProp (const aiMaterial *mat, float &prop, const char *propName, aiTextureType tt, unsigned int idx)
 
void GetTexSampler (const aiMaterial *mat, glTF2::Ref< glTF2::Texture > texture, aiTextureType tt, unsigned int slot)
 
void MergeMeshes ()
 
void WriteBinaryData (IOStream *outfile, std::size_t sceneLength)
 

Detailed Description

Helper class to export a given scene to an glTF file.

Constructor & Destructor Documentation

◆ glTF2Exporter()

glTF2Exporter::glTF2Exporter ( const char *  filename,
IOSystem pIOSystem,
const aiScene pScene,
const ExportProperties pProperties,
bool  binary 
)

Constructor for a specific scene to export.

◆ ~glTF2Exporter()

glTF2Exporter::~glTF2Exporter ( )

Member Function Documentation

◆ ExportAnimations()

void glTF2Exporter::ExportAnimations ( )
protected

◆ ExportMaterials()

void glTF2Exporter::ExportMaterials ( )
protected

◆ ExportMeshes()

void glTF2Exporter::ExportMeshes ( )
protected

◆ ExportMetadata()

void glTF2Exporter::ExportMetadata ( )
protected

◆ ExportNode()

unsigned int glTF2Exporter::ExportNode ( const aiNode node,
glTF2::Ref< glTF2::Node > &  parent 
)
protected

◆ ExportNodeHierarchy()

unsigned int glTF2Exporter::ExportNodeHierarchy ( const aiNode n)
protected

◆ ExportScene()

void glTF2Exporter::ExportScene ( )
protected

◆ GetMatColor() [1/2]

aiReturn glTF2Exporter::GetMatColor ( const aiMaterial mat,
glTF2::vec4 &  prop,
const char *  propName,
int  type,
int  idx 
)
protected

◆ GetMatColor() [2/2]

aiReturn glTF2Exporter::GetMatColor ( const aiMaterial mat,
glTF2::vec3 &  prop,
const char *  propName,
int  type,
int  idx 
)
protected

◆ GetMatTex() [1/4]

void Assimp::glTF2Exporter::GetMatTex ( const aiMaterial mat,
glTF2::Ref< glTF2::Texture > &  texture,
aiTextureType  tt,
unsigned int  slot 
)
protected

◆ GetMatTex() [2/4]

void glTF2Exporter::GetMatTex ( const aiMaterial mat,
glTF2::TextureInfo prop,
aiTextureType  tt,
unsigned int  slot = 0 
)
protected

◆ GetMatTex() [3/4]

void glTF2Exporter::GetMatTex ( const aiMaterial mat,
glTF2::NormalTextureInfo prop,
aiTextureType  tt,
unsigned int  slot = 0 
)
protected

◆ GetMatTex() [4/4]

void glTF2Exporter::GetMatTex ( const aiMaterial mat,
glTF2::OcclusionTextureInfo prop,
aiTextureType  tt,
unsigned int  slot = 0 
)
protected

◆ GetMatTexProp() [1/2]

void glTF2Exporter::GetMatTexProp ( const aiMaterial mat,
unsigned int &  prop,
const char *  propName,
aiTextureType  tt,
unsigned int  idx 
)
protected

◆ GetMatTexProp() [2/2]

void glTF2Exporter::GetMatTexProp ( const aiMaterial mat,
float &  prop,
const char *  propName,
aiTextureType  tt,
unsigned int  idx 
)
protected

◆ GetTexSampler()

void glTF2Exporter::GetTexSampler ( const aiMaterial mat,
glTF2::Ref< glTF2::Texture texture,
aiTextureType  tt,
unsigned int  slot 
)
protected

◆ MergeMeshes()

void glTF2Exporter::MergeMeshes ( )
protected

◆ WriteBinaryData()

void Assimp::glTF2Exporter::WriteBinaryData ( IOStream outfile,
std::size_t  sceneLength 
)
protected

The documentation for this class was generated from the following files: