Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/chan/animBundle.I

Go to the documentation of this file.
00001 // Filename: animBundle.I
00002 // Created by:  drose (21Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: AnimBundle::Constructor
00021 //       Access: Public
00022 //  Description:
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE AnimBundle::
00025 AnimBundle(const string &name, float fps, int num_frames) : AnimGroup(name) {
00026   _fps = fps;
00027   _num_frames = num_frames;
00028   _root = this;
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: AnimBundle::Constructor
00033 //       Access: Public
00034 //  Description:
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE AnimBundle::
00037 AnimBundle(void) {
00038 }
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: AnimBundle::get_base_frame_rate
00042 //       Access: Public
00043 //  Description: Returns the ideal number of frames per second of the
00044 //               animation, when it is running at normal speed.  This
00045 //               may not be the same as the actual playing frame rate,
00046 //               as it might have been adjusted through
00047 //               set_play_rate() on the AnimControl object.  See
00048 //               AnimControl::get_effective_frame_rate().
00049 ////////////////////////////////////////////////////////////////////
00050 INLINE double AnimBundle::
00051 get_base_frame_rate() const {
00052   return _fps;
00053 }
00054 
00055 ////////////////////////////////////////////////////////////////////
00056 //     Function: AnimBundle::get_num_frames
00057 //       Access: Public
00058 //  Description: Returns the number of frames of animation, or 0 if
00059 //               the animation has no fixed number of frames.
00060 ////////////////////////////////////////////////////////////////////
00061 INLINE int AnimBundle::
00062 get_num_frames() const {
00063   return _num_frames;
00064 }
00065 
00066 

Generated on Fri May 2 00:34:54 2003 for Panda by doxygen1.3