Panda3D
pandatool
src
pandatoolbase
animationConvert.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file animationConvert.h
10
* @author drose
11
* @date 2003-01-21
12
*/
13
14
#ifndef ANIMATIONCONVERT_H
15
#define ANIMATIONCONVERT_H
16
17
#include "
pandatoolbase.h
"
18
19
/**
20
* This enumerated type lists the methods by which animation from an animation
21
* package might be represented in egg format.
22
*/
23
enum
AnimationConvert
{
24
AC_invalid,
// Never use this.
25
AC_none,
// No animation: static geometry only.
26
AC_pose,
// Pose to one frame, then get static geometry.
27
AC_flip,
// A flip (sequence) of static geometry models.
28
AC_strobe,
// All frames of a flip visible at the same time.
29
AC_model,
// A character model, with joints.
30
AC_chan,
// Animation tables for the above model.
31
AC_both,
// A character model and tables in the same file.
32
};
33
34
std::string
format_animation_convert
(
AnimationConvert
unit);
35
36
std::ostream &operator << (std::ostream &out,
AnimationConvert
unit);
37
AnimationConvert
string_animation_convert
(
const
std::string &str);
38
39
#endif
AnimationConvert
AnimationConvert
This enumerated type lists the methods by which animation from an animation package might be represen...
Definition:
animationConvert.h:23
string_animation_convert
AnimationConvert string_animation_convert(const std::string &str)
Converts from a string, as might be input by the user, to one of the known AnimationConvert types.
Definition:
animationConvert.cxx:66
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
format_animation_convert
std::string format_animation_convert(AnimationConvert unit)
Returns the string corresponding to this method.
Definition:
animationConvert.cxx:23
Generated on Mon Sep 14 2020 15:07:12 for Panda3D by
1.8.20