ICamera Interface |
public interface ICamera
The ICamera type exposes the following members.
Name | Description | |
---|---|---|
AspectRatio | Gets or sets the camera's aspect ratio - calculated as viewport's width / height. | |
FarPlaneDistance | Gets or sets a value that specifies the distance from the camera of the camera's far clip plane. | |
NearPlaneDistance | Gets or sets a value that specifies the distance from the camera of the camera's near clip plane. | |
ParentDXScene | Gets or sets the DXScene that this camera belong to. | |
ParentSceneNode | Gets or sets a parent SceneNode that can be used to adjust the camera's View matrix with the SceneNode's world matrix. This can be used to animate the camera with SceneNode. | |
Projection | Gets the camera's projection matrix. | |
ProjectionType | Gets type of projection (Perspective or Orthographic) | |
View | Gets the camera's view matrix. |
Name | Description | |
---|---|---|
GetCameraPosition | Returns the current position of the camera. | |
GetViewProjection | Gets a precalculated View * Projection matrix. | |
GetWorldViewProjection | Returns WorldViewProjection matrix. Calculating this matrix is faster inside Camera because here we can access matrixes by reference. | |
Update | Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true. |
Name | Description | |
---|---|---|
CameraChanged | CameraChanged event occurs after the camera was changed. |