sequenceNode.I 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. // Function: SequenceNode::Constructor
  16. // Access: Published
  17. // Description:
  18. ////////////////////////////////////////////////////////////////////
  19. INLINE SequenceNode::
  20. SequenceNode(const string &name) :
  21. SelectiveChildNode(name)
  22. {
  23. set_cull_callback();
  24. }
  25. ////////////////////////////////////////////////////////////////////
  26. // Function: SequenceNode::set_frame_rate
  27. // Access: Published
  28. // Description: Changes the advertised frame rate of the
  29. // SequenceNode. This can be used in conjunction with
  30. // get_play_rate() to change the effective frame rate of
  31. // the node.
  32. ////////////////////////////////////////////////////////////////////
  33. INLINE void SequenceNode::
  34. set_frame_rate(double frame_rate) {
  35. AnimInterface::set_frame_rate(frame_rate);
  36. }