Panda3D
 All Classes Functions Variables Enumerations
sequenceNode.I
1 // Filename: sequenceNode.I
2 // Created by: drose (06Mar02)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: SequenceNode::Constructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE SequenceNode::
22 SequenceNode(const string &name) :
23  SelectiveChildNode(name)
24 {
25  set_cull_callback();
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: SequenceNode::set_frame_rate
30 // Access: Published
31 // Description: Changes the advertised frame rate of the
32 // SequenceNode. This can be used in conjunction with
33 // get_play_rate() to change the effective frame rate of
34 // the node.
35 ////////////////////////////////////////////////////////////////////
36 INLINE void SequenceNode::
37 set_frame_rate(double frame_rate) {
38  AnimInterface::set_frame_rate(frame_rate);
39 }
A base class for nodes like LODNode and SequenceNode that select only one visible child at a time...
void set_frame_rate(double frame_rate)
Changes the advertised frame rate of the SequenceNode.
Definition: sequenceNode.I:37