ID3DXSprite::SetWorldViewLH method
Sets the left-handed world-view transform for a sprite. A call to this method is required before billboarding or sorting sprites.
Syntax
HRESULT SetWorldViewLH(
[in] const D3DXMATRIX *pWorld,
[in] const D3DXMATRIX *pView
);
Parameters
-
pWorld [in]
-
Type: const D3DXMATRIX*
Pointer to a D3DXMATRIX that contains a world transform. If NULL, the identity matrix is used for the world transform.
-
pView [in]
-
Type: const D3DXMATRIX*
Pointer to a D3DXMATRIX that contains a view transform. If NULL, the identity matrix is used for the view transform.
Return value
Type: HRESULT
If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.D3DERR_INVALIDCALL
Remarks
A call to this method (or to ID3DXSprite::SetWorldViewRH) is required if the sprite will be rendered with the D3DXSprite__BILLBOARD, D3DXSprite__SORT_DEPTH_FRONTTOBACK, or D3DXSprite__SORT_DEPTH_BACKTOFRONT flag value in ID3DXSprite::Begin.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also