- Cal3D 0.9 API Reference -

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

saver.h

00001 //****************************************************************************//
00002 // saver.h                                                                    //
00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger                       //
00004 //****************************************************************************//
00005 // This library is free software; you can redistribute it and/or modify it    //
00006 // under the terms of the GNU Lesser General Public License as published by   //
00007 // the Free Software Foundation; either version 2.1 of the License, or (at    //
00008 // your option) any later version.                                            //
00009 //****************************************************************************//
00010 
00011 #ifndef CAL_SAVER_H
00012 #define CAL_SAVER_H
00013 
00014 //****************************************************************************//
00015 // Includes                                                                   //
00016 //****************************************************************************//
00017 
00018 #include "cal3d/global.h"
00019 
00020 //****************************************************************************//
00021 // Forward declarations                                                       //
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 // Class declaration                                                          //
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 //****************************************************************************//

Generated at Sun Oct 12 18:38:48 2003 by The Cal3D Team with doxygen 1.2.14 © 1997-2001 Dimitri van Heesch