|
@@ -114,7 +114,9 @@ protected:
|
|
|
/// Writes the given mesh
|
|
|
void WriteGeometry( size_t pIndex);
|
|
|
|
|
|
- enum FloatDataType { FloatType_Vector, FloatType_TexCoord2, FloatType_TexCoord3, FloatType_Color, FloatType_Mat4x4, FloatType_Weight };
|
|
|
+ //enum FloatDataType { FloatType_Vector, FloatType_TexCoord2, FloatType_TexCoord3, FloatType_Color, FloatType_Mat4x4, FloatType_Weight };
|
|
|
+ // customized to add animation related type
|
|
|
+ enum FloatDataType { FloatType_Vector, FloatType_TexCoord2, FloatType_TexCoord3, FloatType_Color, FloatType_Mat4x4, FloatType_Weight, FloatType_Time };
|
|
|
|
|
|
/// Writes a float array of the given type
|
|
|
void WriteFloatArray( const std::string& pIdString, FloatDataType pType, const ai_real* pData, size_t pElementCount);
|
|
@@ -122,6 +124,11 @@ protected:
|
|
|
/// Writes the scene library
|
|
|
void WriteSceneLibrary();
|
|
|
|
|
|
+ // customized, Writes the animation library
|
|
|
+ void WriteAnimationsLibrary();
|
|
|
+ void WriteAnimationLibrary( size_t pIndex);
|
|
|
+ std::string mFoundSkeletonRootNodeID = "skeleton_root"; // will be replaced by found node id in the WriteNode call.
|
|
|
+
|
|
|
/// Recursively writes the given node
|
|
|
void WriteNode( const aiScene* scene, aiNode* pNode);
|
|
|
|