![]() |
![]() |
![]() |
KeyframedAnimationSet.RegisterAnimationKeys Method |
Language: |
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.
Visual Basic Public Function RegisterAnimationKeys( _
ByVal animationName As String, _
ByVal scaleKeys() As KeyVector3, _
ByVal rotationKeys() As KeyQuaternion, _
ByVal translationKeys() As KeyVector3 _
) As IntegerC# public int RegisterAnimationKeys(
string animationName,
KeyVector3[] scaleKeys,
KeyQuaternion[] rotationKeys,
KeyVector3[] translationKeys
);C++ public:
int RegisterAnimationKeys(
String^ animationName,
array<KeyVector3>^ scaleKeys,
array<KeyQuaternion>^ rotationKeys,
array<KeyVector3>^ translationKeys
);JScript public function RegisterAnimationKeys(
animationName : String,
scaleKeys : KeyVector3[],
rotationKeys : KeyQuaternion[],
translationKeys : KeyVector3[]
) : int;
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.
System.Int32
The animation index.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center