auto_bind.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Filename: auto_bind.h
  2. // Created by: drose (23Feb99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef AUTO_BIND_H
  19. #define AUTO_BIND_H
  20. #include <pandabase.h>
  21. #include "animControl.h"
  22. #include "animControlCollection.h"
  23. class Node;
  24. class PandaNode;
  25. BEGIN_PUBLISH
  26. ////////////////////////////////////////////////////////////////////
  27. // Function: auto_bind
  28. // Description: Walks the scene graph or subgraph beginning at the
  29. // indicated node, and attempts to bind any AnimBundles
  30. // found to their matching PartBundles, when possible.
  31. //
  32. // The list of all resulting AnimControls created is
  33. // filled into controls.
  34. ////////////////////////////////////////////////////////////////////
  35. EXPCL_PANDA void
  36. auto_bind(Node *root_node, AnimControlCollection &controls,
  37. int hierarchy_match_flags = 0);
  38. EXPCL_PANDA void
  39. auto_bind(PandaNode *root_node, AnimControlCollection &controls,
  40. int hierarchy_match_flags = 0);
  41. END_PUBLISH
  42. #endif