- 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
25class CalCoreModel;
26class CalCoreSkeleton;
27class CalCoreBone;
29class CalCoreMesh;
30class CalCoreSubmesh;
31class CalCoreMaterial;
32class CalCoreKeyframe;
33class CalCoreTrack;
34
35//****************************************************************************//
36// Class declaration //
37//****************************************************************************//
38
39 /*****************************************************************************/
43class CAL3D_API CalSaver
44{
45public:
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
51protected:
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: coreanimation.h:23
Definition: corebone.h:26
The core keyframe class.
Definition: corekeyframe.h:32
Definition: corematerial.h:21
Definition: coremesh.h:24
Definition: coremodel.h:26
Definition: coreskeleton.h:24
Definition: coresubmesh.h:23
Definition: coretrack.h:39
The saver class.
Definition: saver.h:44

Generated by The Cal3D Team with Doxygen 1.9.4