Sprite.SetWorldViewLH(Matrix,Matrix) Method (Microsoft.DirectX.Direct3D)

Sets the left-handed world-view transform for a sprite.

A call to this method is required before billboarding or sorting sprites.

Definition

Visual Basic Public Sub SetWorldViewLH( _
    ByVal world As Matrix, _
    ByVal view As Matrix _
)
C# public void SetWorldViewLH(
    Matrix world,
    Matrix view
);
C++ public:
void SetWorldViewLH(
    Matrix world,
    Matrix view
);
JScript public function SetWorldViewLH(
    world : Matrix,
    view : Matrix
);

Parameters

world Microsoft.DirectX.Matrix
A Matrix object that contains a world transform.
view Microsoft.DirectX.Matrix
A Matrix object that contains a view transform.

Remarks

A call to this method (or to Sprite.SetWorldViewRH) is required if the sprite will be rendered with the Billboard, SortDepthFrontToBack, or SortDepthBackToFront flags parameter in Sprite.Begin.

Exceptions

InvalidCallException

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

See Also