Skip to content

Latest commit

 

History

History
119 lines (73 loc) · 2.73 KB

id3dxanimationcontroller--registeranimationoutput.md

File metadata and controls

119 lines (73 loc) · 2.73 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
Adds an animation output to the animation controller and registers pointers for scale, rotate, and translate (SRT) transformations.
8c3197bc-9d03-40ba-869b-151f9c8e96ba
ID3DXAnimationController::RegisterAnimationOutput method (D3dx9anim.h)
reference
05/31/2018
APIRef
kbSyntax
ID3DXAnimationController.RegisterAnimationOutput
COM
d3dx9.lib
d3dx9.dll

ID3DXAnimationController::RegisterAnimationOutput method

Adds an animation output to the animation controller and registers pointers for scale, rotate, and translate (SRT) transformations.

Syntax

HRESULT RegisterAnimationOutput(
  [in] LPCSTR         Name,
  [in] D3DXMATRIX     *pMatrix,
  [in] D3DXVECTOR3    *pScale,
  [in] D3DXQUATERNION *pRotation,
  [in] D3DXVECTOR3    *pTranslation
);

Parameters

Name [in]

Type: LPCSTR

Name of the animation output.

pMatrix [in]

Type: D3DXMATRIX*

Pointer to a D3DXMATRIX structure containing SRT transformation data. Can be NULL.

pScale [in]

Type: D3DXVECTOR3*

Pointer to a D3DXVECTOR3 vector that describes the scale of the animation set. Can be NULL.

pRotation [in]

Type: D3DXQUATERNION*

Pointer to a D3DXQUATERNION quaternion that describes the rotation of the animation set. Can be NULL.

pTranslation [in]

Type: D3DXVECTOR3*

Pointer to a D3DXVECTOR3 vector that describes the translation of the animation set. Can be NULL.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following values: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

If the animation output is already registered, pMatrix will be filled with the input transformation data.

Animation sets created with D3DXLoadMeshHierarchyFromX automatically register all loaded animation sets.

Requirements

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

ID3DXAnimationController