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

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

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

Definition

Visual Basic Public Sub SetWorldViewRH( _
    ByVal world As Matrix, _
    ByVal view As Matrix _
)
C# public void SetWorldViewRH(
    Matrix world,
    Matrix view
);
C++ public:
void SetWorldViewRH(
    Matrix world,
    Matrix view
);
JScript public function SetWorldViewRH(
    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.SetWorldViewLH) 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