Microsoft DirectX 9.0 SDK Update (October 2004)

KeyframedAnimationSet.RegisterAnimationKeys Method

Language:

Note: This documentation is preliminary and is subject to change.

Registers all of the scale, rotate, and translate (SRT) keyframe data of an animation, and fills arrays with SRT key data used for keyframe animation.

Definition

Visual Basic .NET Public Function RegisterAnimationKeys( _
    ByVal animationName As String, _
    ByVal scaleKeys() As KeyVector3, _
    ByVal rotationKeys() As KeyQuaternion, _
    ByVal translationKeys() As KeyVector3 _
) As Integer
C# public int RegisterAnimationKeys(
    string animationName,
    KeyVector3[] scaleKeys,
    KeyQuaternion[] rotationKeys,
    KeyVector3[] translationKeys
);
Managed C++ public: int RegisterAnimationKeys(
    String *animationName,
    KeyVector3 scaleKeys __gc[],
    KeyQuaternion rotationKeys __gc[],
    KeyVector3 translationKeys __gc[]
);
JScript .NET public function RegisterAnimationKeys(
    animationName : String,
    scaleKeys : KeyVector3[],
    rotationKeys : KeyQuaternion[],
    translationKeys : KeyVector3[]
) : int;

Parameters

animationName System.String. String that contains the animation name.
scaleKeys Microsoft.DirectX.Direct3D.KeyVector3[]. Array of KeyVector3 structures that contain animation scale data.
rotationKeys Microsoft.DirectX.Direct3D.KeyQuaternion[]. Array of KeyQuaternion structures that contain animation rotation data.
translationKeys Microsoft.DirectX.Direct3D.KeyVector3[]. Array of KeyVector3 structures that contain animation translation data.

Return Value

System.Int32 . The animation index.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center