Panda3D
 All Classes Functions Variables Enumerations
animationConvert.h
1 // Filename: animationConvert.h
2 // Created by: drose (21Jan03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ANIMATIONCONVERT_H
16 #define ANIMATIONCONVERT_H
17 
18 #include "pandatoolbase.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Enum : AnimationConvert
22 // Description : This enumerated type lists the methods by which
23 // animation from an animation package might be
24 // represented in egg format.
25 ////////////////////////////////////////////////////////////////////
26 enum AnimationConvert {
27  AC_invalid, // Never use this.
28  AC_none, // No animation: static geometry only.
29  AC_pose, // Pose to one frame, then get static geometry.
30  AC_flip, // A flip (sequence) of static geometry models.
31  AC_strobe, // All frames of a flip visible at the same time.
32  AC_model, // A character model, with joints.
33  AC_chan, // Animation tables for the above model.
34  AC_both, // A character model and tables in the same file.
35 };
36 
37 string format_animation_convert(AnimationConvert unit);
38 
39 ostream &operator << (ostream &out, AnimationConvert unit);
40 AnimationConvert string_animation_convert(const string &str);
41 
42 #endif