|
| SkeletonAnimation (const SkeletonAnimationDef *definition, const FastArray< size_t > *slotStarts, SkeletonInstance *owner) |
|
void | _applyAnimation (const TransformArray &boneTransforms) |
|
void | _boneMemoryRebased (const FastArray< size_t > &oldSlotStarts) |
| Shifts the values of mBoneWeights to new locations because the bones' mIndex may have changed.
|
|
void | _initialize (void) |
| Internal function that initializes a lot of structures that can't be done in the constructor due to how SkeletonInstance is created/pushed in a vector.
|
|
void | _swapBoneWeightsUniquePtr (RawSimdUniquePtr< ArrayReal, MEMCATEGORY_ANIMATION > &inOutBoneWeights) |
|
void | addFrame (Real frames) |
| Plays the animation forward (or backwards if negative)
|
|
void | addTime (Real time) |
| Plays the animation forward (or backwards if negative)
|
|
Real | getBoneWeight (IdString boneName) const |
| Gets the current per-bone weight of a particular bone.
|
|
Real * | getBoneWeightPtr (IdString boneName) |
| Gets a pointer current per-bone weight of a particular bone.
|
|
Real | getCurrentFrame (void) const |
| Gets the current animation frame, in frames.
|
|
Real | getCurrentTime (void) const |
| Gets the current animation time, in seconds. Prefer using getCurrentFrame.
|
|
const SkeletonAnimationDef * | getDefinition (void) const |
|
Real | getDuration (void) const |
| Gets animation length, in seconds.
|
|
bool | getEnabled (void) const |
|
bool | getLoop (void) const |
| Returns current loop setting.
|
|
IdString | getName (void) const |
|
Real | getNumFrames (void) const |
| Gets the frame count.
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info
|
|
void | setBoneWeight (IdString boneName, Real weight) |
| Sets the per-bone weight to a particular bone.
|
|
void | setEnabled (bool bEnable) |
| Enables or disables this animation. A disabled animation won't be processed at all.
|
|
void | setFrame (Real frame) |
| Sets the animation to a particular frame.
|
|
void | setLoop (bool bLoop) |
| Loop setting.
|
|
void | setTime (Real time) |
| Sets the animation to a particular time.
|
|
Represents the instance of a Skeletal animation based on its definition.
Real * Ogre::SkeletonAnimation::getBoneWeightPtr |
( |
IdString |
boneName | ) |
|
Gets a pointer current per-bone weight of a particular bone.
Useful if you intend to have read/write access to this value very often.
If returnPtr is the return value to bone[0], do not assume that returnPtr+1 affects bone[1] or even any other bone. Doing so the behavior is underfined and most likely you could be affecting the contents of other SkeletonInstances.
- Parameters
-
boneName | The name of the bone to get. If this animation doesn't affect that bone (or the name is invalid) this function returns a null pointer. |
- Returns
- The pointer to the bone weight of the specified bone. Null pointer if not found.