DX9ToolsR4 - Created by: X

Camera Constructor (Device)

Initilizes the camera using a 'Direct3D.Device' reference.

[Visual Basic]
Overloads Public Sub New( _
   ByVal Device As Device _
)
[C#]
public Camera(
   Device Device
);

Parameters

Device
Reference to a Direct3D.Device object.

Remarks

The reference to the Direct3D.Device is nessary because if, for example, you set the FieldOfView property and the AutoUpdateProjection property is True a call to the UpdateProjection method is made automatically.

The UpdateProjection method uses the reference to the device to update it's Projection transform.

Exceptions

Exception TypeCondition
ArgumentNullException Will throw a ArgumentNullException Exception if the Device parameter is nothing.

See Also

Camera Class | CBX.Libs.DX9ToolsR4 Namespace | Camera Constructor Overload List