47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
// Filename: animationConvert.h
|
|
// Created by: drose (21Jan03)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d-general@lists.sourceforge.net .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ANIMATIONCONVERT_H
|
|
#define ANIMATIONCONVERT_H
|
|
|
|
#include "pandatoolbase.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Enum : AnimationConvert
|
|
// Description : This enumerated type lists the methods by which
|
|
// animation from an animation package might be
|
|
// represented in egg format.
|
|
////////////////////////////////////////////////////////////////////
|
|
enum AnimationConvert {
|
|
AC_invalid, // Never use this.
|
|
AC_none, // No animation: static geometry only.
|
|
AC_pose, // Pose to one frame, then get static geometry.
|
|
AC_flip, // A flip (sequence) of static geometry models.
|
|
AC_strobe, // All frames of a flip visible at the same time.
|
|
AC_model, // A character model, with joints.
|
|
AC_chan, // Animation tables for the above model.
|
|
AC_both, // A character model and tables in the same file.
|
|
};
|
|
|
|
string format_animation_convert(AnimationConvert unit);
|
|
|
|
ostream &operator << (ostream &out, AnimationConvert unit);
|
|
AnimationConvert string_animation_convert(const string &str);
|
|
|
|
#endif
|