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 #include "cal3d/vector.h"
00020
00021
00022
00023
00024
00025 class CalCoreModel;
00026 class CalCoreSkeleton;
00027 class CalCoreBone;
00028 class CalCoreAnimation;
00029 class CalCoreMesh;
00030 class CalCoreSubmesh;
00031 class CalCoreMaterial;
00032 class CalCoreKeyframe;
00033 class CalCoreTrack;
00034
00035
00036
00037
00038
00039
00043 class CAL3D_API CalSaver
00044 {
00045 public:
00046 static bool saveCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
00047 static bool saveCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
00048 static bool saveCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
00049 static bool saveCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
00050
00051 protected:
00052 static bool saveCoreBones(std::ofstream& file, const std::string& strFilename, CalCoreBone *pCoreBone);
00053 static bool saveCoreKeyframe(std::ofstream& file, const std::string& strFilename, CalCoreKeyframe *pCoreKeyframe);
00054 static bool saveCoreSubmesh(std::ofstream& file, const std::string& strFilename, CalCoreSubmesh *pCoreSubmesh);
00055 static bool saveCoreTrack(std::ofstream& file, const std::string& strFilename, CalCoreTrack *pCoreTrack);
00056
00057 static bool saveXmlCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
00058 static bool saveXmlCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
00059 static bool saveXmlCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
00060 static bool saveXmlCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
00061 };
00062
00063 #endif
00064
00065