Functions | |
Dtk_ErrorStatus | Dtk_FBXWriter::CloseLastInstance () |
Close last instance node for internal tree. It should be called as many time as OpenInstance is called. More... | |
Dtk_FBXWriter::Dtk_FBXWriter (const Dtk_string &inFicout, Dtk_ErrorStatus &outErr, Dtk_Int32 inVersion=7400) | |
Constructor : Initialize the writer for a FBX File. More... | |
Dtk_ErrorStatus | Dtk_FBXWriter::OpenInstance (const Dtk_string &inInstanceName, Dtk_Int64 inProtoID, Dtk_bool &outWasAlreadyInstancied, const Dtk_transfo &inTrans=Dtk_transfo(), const Dtk_RGB &inRgb=Dtk_RGB()) |
Open a new instance node for internal tree. More... | |
Dtk_ErrorStatus | Dtk_FBXWriter::WriteMesh (const Dtk_MeshPtr &inMesh) |
Add a Mesh in current instance node. Supports colors, normals per vertex. More... | |
Dtk_FBXWriter::~Dtk_FBXWriter () | |
Destructor, Save the current work into a FBX file. More... | |
Dtk_ErrorStatus Dtk_FBXWriter::CloseLastInstance | ( | ) |
Close last instance node for internal tree. It should be called as many time as OpenInstance is called.
Dtk_FBXWriter::Dtk_FBXWriter | ( | const Dtk_string & | inFicout, |
Dtk_ErrorStatus & | outErr, | ||
Dtk_Int32 | inVersion = 7400 |
||
) |
Constructor : Initialize the writer for a FBX File.
[in] | inFicout | : File to write. |
[out] | outErr | : dtkNoError if ok |
[in] | inVersion | : Version to write, default is 7.4 (use 7400), supports also 7.5 (use 7500) |
Dtk_ErrorStatus Dtk_FBXWriter::OpenInstance | ( | const Dtk_string & | inInstanceName, |
Dtk_Int64 | inProtoID, | ||
Dtk_bool & | outWasAlreadyInstancied, | ||
const Dtk_transfo & | inTrans = Dtk_transfo() , |
||
const Dtk_RGB & | inRgb = Dtk_RGB() |
||
) |
Open a new instance node for internal tree.
[in] | inInstanceName | : Instance name |
[in] | inProtoID | : provide a proto ID if you need to reinstanciate it later. Provide -1 if not. |
[out] | outWasAlreadyInstancied | : gives back if this was reinstanciated (same ID given another time), in this case, previous prototype under instance is linker, you should just call CloseLastInstance. |
[in] | inTrans | : Matrice to apply on the instance |
[in] | inRgb | : Instance color (not yet supported) |
Dtk_ErrorStatus Dtk_FBXWriter::WriteMesh | ( | const Dtk_MeshPtr & | inMesh | ) |
Add a Mesh in current instance node. Supports colors, normals per vertex.
[in] | inMesh | : Mesh to write |
Dtk_FBXWriter::~Dtk_FBXWriter | ( | ) |
Destructor, Save the current work into a FBX file.