DrawSkeleton.h 418 B

1234567891011121314151617181920212223242526
  1. #ifndef DRAW_SKELETON_H
  2. #define DRAW_SKELETON_H
  3. #include <Ogre.h>
  4. struct Bone
  5. {
  6. Bone():
  7. length( 0 ),
  8. parent_id( -1 )
  9. {
  10. }
  11. float length;
  12. int parent_id;
  13. };
  14. typedef std::vector< Bone > Skeleton;
  15. void DrawSkeleton( const Skeleton& skeleton, const Ogre::MeshPtr& mesh );
  16. void DrawBone( const Skeleton& skeleton, int parent_index, Ogre::RGBA* colours );
  17. #endif // DRAW_SKELETON_H