00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef CAL_SAVER_H
00012 #define CAL_SAVER_H
00013
00014
00015
00016
00017
00018 #include "cal3d/global.h"
00019
00020
00021
00022
00023
00024 class CalCoreModel;
00025 class CalCoreSkeleton;
00026 class CalCoreBone;
00027 class CalCoreAnimation;
00028 class CalCoreTrack;
00029 class CalCoreKeyframe;
00030 class CalCoreMesh;
00031 class CalCoreSubmesh;
00032 class CalCoreMaterial;
00033
00034
00035
00036
00037
00038
00042 class CAL3D_API CalSaver
00043 {
00044 public:
00045 static bool saveCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
00046 static bool saveCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
00047 static bool saveCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
00048 static bool saveCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
00049
00050 protected:
00051 static bool saveCoreBones(std::ofstream& file, const std::string& strFilename, CalCoreBone *pCoreBone);
00052 static bool saveCoreKeyframe(std::ofstream& file, const std::string& strFilename, CalCoreKeyframe *pCoreKeyframe);
00053 static bool saveCoreSubmesh(std::ofstream& file, const std::string& strFilename, CalCoreSubmesh *pCoreSubmesh);
00054 static bool saveCoreTrack(std::ofstream& file, const std::string& strFilename, CalCoreTrack *pCoreTrack);
00055
00056 static bool saveXmlCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
00057 static bool saveXmlCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
00058 static bool saveXmlCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
00059 static bool saveXmlCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
00060 };
00061
00062 #endif
00063
00064