ID3DXSprite::SetWorldViewLH

Sets the left-handed world-view transform for a sprite. A call to this method is required before billboarding or sorting sprites.

HRESULT SetWorldViewLH(
  CONST D3DXMATRIX * pWorld,
  CONST D3DXMATRIX * pView
);

Parameters

pWorld
[in] Pointer to a D3DXMATRIX that contains a world transform. If NULL, the identity matrix is used for the world transform.
pView
[in] Pointer to a D3DXMATRIX that contains a view transform. If NULL, the identity matrix is used for the view transform.

Return Values

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

Header: Declared in D3dx9core.h.