- Cal3D 0.11 API Reference -

saver.h
1 //****************************************************************************//
2 // saver.h //
3 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4 //****************************************************************************//
5 // This library is free software; you can redistribute it and/or modify it //
6 // under the terms of the GNU Lesser General Public License as published by //
7 // the Free Software Foundation; either version 2.1 of the License, or (at //
8 // your option) any later version. //
9 //****************************************************************************//
10 
11 #ifndef CAL_SAVER_H
12 #define CAL_SAVER_H
13 
14 //****************************************************************************//
15 // Includes //
16 //****************************************************************************//
17 
18 #include "cal3d/global.h"
19 #include "cal3d/vector.h"
20 
21 //****************************************************************************//
22 // Forward declarations //
23 //****************************************************************************//
24 
25 class CalCoreModel;
26 class CalCoreSkeleton;
27 class CalCoreBone;
28 class CalCoreAnimation;
29 class CalCoreMesh;
30 class CalCoreSubmesh;
31 class CalCoreMaterial;
32 class CalCoreKeyframe;
33 class CalCoreTrack;
34 
35 //****************************************************************************//
36 // Class declaration //
37 //****************************************************************************//
38 
39  /*****************************************************************************/
43 class CAL3D_API CalSaver
44 {
45 public:
46  static bool saveCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
47  static bool saveCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
48  static bool saveCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
49  static bool saveCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
50 
51 protected:
52  static bool saveCoreBones(std::ofstream& file, const std::string& strFilename, CalCoreBone *pCoreBone);
53  static bool saveCoreKeyframe(std::ofstream& file, const std::string& strFilename, CalCoreKeyframe *pCoreKeyframe);
54  static bool saveCoreSubmesh(std::ofstream& file, const std::string& strFilename, CalCoreSubmesh *pCoreSubmesh);
55  static bool saveCoreTrack(std::ofstream& file, const std::string& strFilename, CalCoreTrack *pCoreTrack);
56 
57  static bool saveXmlCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
58  static bool saveXmlCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
59  static bool saveXmlCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
60  static bool saveXmlCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
61 };
62 
63 #endif
64 
65 //****************************************************************************//
Definition: coremodel.h:25
Definition: corematerial.h:20
Definition: coreanimation.h:22
Definition: corebone.h:25
Definition: coreskeleton.h:23
Definition: coremesh.h:23
The saver class.
Definition: saver.h:43
Definition: coresubmesh.h:22
Definition: coretrack.h:38
The core keyframe class.
Definition: corekeyframe.h:31

Generated at Sat Aug 16 2014 01:39:52 by The Cal3D Team with Doxygen 1.8.7