Panda3D
|
00001 // Filename: animationConvert.h 00002 // Created by: drose (21Jan03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef ANIMATIONCONVERT_H 00016 #define ANIMATIONCONVERT_H 00017 00018 #include "pandatoolbase.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Enum : AnimationConvert 00022 // Description : This enumerated type lists the methods by which 00023 // animation from an animation package might be 00024 // represented in egg format. 00025 //////////////////////////////////////////////////////////////////// 00026 enum AnimationConvert { 00027 AC_invalid, // Never use this. 00028 AC_none, // No animation: static geometry only. 00029 AC_pose, // Pose to one frame, then get static geometry. 00030 AC_flip, // A flip (sequence) of static geometry models. 00031 AC_strobe, // All frames of a flip visible at the same time. 00032 AC_model, // A character model, with joints. 00033 AC_chan, // Animation tables for the above model. 00034 AC_both, // A character model and tables in the same file. 00035 }; 00036 00037 string format_animation_convert(AnimationConvert unit); 00038 00039 ostream &operator << (ostream &out, AnimationConvert unit); 00040 AnimationConvert string_animation_convert(const string &str); 00041 00042 #endif