#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| DIOGREBone * | CreateBone (void) |
| Creates a brand new Bone owned by this Skeleton. | |
| DIOGREBone * | CreateBone (unsigned short handle) |
| Creates a brand new Bone owned by this Skeleton. | |
| DIOGREBone * | CreateBone (const char *name) |
| Creates a brand new Bone owned by this Skeleton. | |
| DIOGREBone * | CreateBone (const char *name, unsigned short handle) |
| Creates a brand new Bone owned by this Skeleton. | |
| unsigned short | GetNumBones (void) |
| Returns the number of bones in this skeleton. | |
| DIOGREBone * | GetRootBone (void) |
| Gets the root bone of the skeleton: deprecated in favour of getRootBoneIterator. | |
| DIOGREBone * | GetBone (unsigned short handle) |
| Gets a bone by it's handle. | |
| DIOGREBone * | GetBone (const char *name) |
| Gets a bone by it's name. | |
| void | SetBindingPose (void) |
| Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh. | |
| void | Reset (bool resetManualBones) |
| Resets the position and orientation of all bones in this skeleton to their original binding position. | |
| DIOGREAnimation * | CreateAnimation (const char *name, float length) |
| Creates a new Animation object for animating this skeleton. | |
| void | RemoveAnimation (const char *name) |
| Returns the named Animation object. | |
| unsigned short | GetNumAnimations (void) |
| Changes the state of the skeleton to reflect the application of the passed in collection of animations. | |
| DIOGREAnimation * | GetAnimation (unsigned short index) |
| Gets a single animation by index. | |
| OGRESkeletonAnimationBlendMode | GetBlendMode () |
| Gets the animation blending mode which this skeleton will use. | |
| void | SetBlendMode (OGRESkeletonAnimationBlendMode state) |
| Sets the animation blending mode this skeleton will use. | |
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::CreateBone | ( | void | ) |
Creates a brand new Bone owned by this Skeleton.
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::CreateBone | ( | unsigned short | handle | ) |
Creates a brand new Bone owned by this Skeleton.
| handle | The handle to give to this new bone - must be unique within this skeleton. You should also ensure that all bone handles are eventually contiguous (this is to simplify their compilation into an indexed array of transformation matrices). For this reason it is advised that you use the simpler createBone method which automatically assigns a sequential handle starting from 0. |
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::CreateBone | ( | const char * | name | ) |
Creates a brand new Bone owned by this Skeleton.
| name | The name to give to this new bone - must be unique within this skeleton. Note that the way OGRE looks up bones is via a numeric handle, so if you name a Bone this way it will be given an automatic sequential handle. The name is just for your convenience, although it is recommended that you only use the handle to retrieve the bone in performance-critical code. |
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::CreateBone | ( | const char * | name, | |
| unsigned short | handle | |||
| ) |
Creates a brand new Bone owned by this Skeleton.
| name | The name to give to this new bone - must be unique within this skeleton. | |
| handle | The handle to give to this new bone - must be unique within this skeleton. |
| unsigned short DigitalSpaces::DIOGRESkeleton::GetNumBones | ( | void | ) |
Returns the number of bones in this skeleton.
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::GetRootBone | ( | void | ) |
Gets the root bone of the skeleton: deprecated in favour of getRootBoneIterator.
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::GetBone | ( | unsigned short | handle | ) |
Gets a bone by it's handle.
| DIOGREBone* DigitalSpaces::DIOGRESkeleton::GetBone | ( | const char * | name | ) |
Gets a bone by it's name.
| void DigitalSpaces::DIOGRESkeleton::SetBindingPose | ( | void | ) |
Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh.
| void DigitalSpaces::DIOGRESkeleton::Reset | ( | bool | resetManualBones | ) |
Resets the position and orientation of all bones in this skeleton to their original binding position.
| resetManualBones | If set to true, causes the state of manual bones to be reset too, which is normally not done to allow the manual state to persist even when keyframe animation is applied. |
| DIOGREAnimation* DigitalSpaces::DIOGRESkeleton::CreateAnimation | ( | const char * | name, | |
| float | length | |||
| ) |
Creates a new Animation object for animating this skeleton.
| name | The name of this animation | |
| length | The length of the animation in seconds |
| void DigitalSpaces::DIOGRESkeleton::RemoveAnimation | ( | const char * | name | ) |
Returns the named Animation object.
| name | The name of the animation | |
| linker | Optional pointer to a pointer to the linked skeleton animation where this is coming from. Removes an Animation from this skeleton. |
| unsigned short DigitalSpaces::DIOGRESkeleton::GetNumAnimations | ( | void | ) |
Changes the state of the skeleton to reflect the application of the passed in collection of animations.
| Gets | the last animation state of this skeleton. Gets the number of animations on this skeleton. |
| DIOGREAnimation* DigitalSpaces::DIOGRESkeleton::GetAnimation | ( | unsigned short | index | ) |
Gets a single animation by index.
| OGRESkeletonAnimationBlendMode DigitalSpaces::DIOGRESkeleton::GetBlendMode | ( | ) |
Gets the animation blending mode which this skeleton will use.
| void DigitalSpaces::DIOGRESkeleton::SetBlendMode | ( | OGRESkeletonAnimationBlendMode | state | ) |
Sets the animation blending mode this skeleton will use.
1.5.6