Class CloneCamera
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
A camera that imitates the perspective of another Camera.
public class CloneCamera : Camera, IPositionable
- Inheritance
-
CloneCamera
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
CloneCamera(Camera)
A camera that imitates the perspective of another Camera.
public CloneCamera(Camera parentCamera)
Parameters
parentCameraCameraThe parent camera to track
Properties
ParentCamera
The parent camera to track
public Camera ParentCamera { get; set; }
Property Value
Methods
PerspectiveChange(float, float, float, float)
Called when the user changes the view perspective.
public override void PerspectiveChange(float panX, float panY, float rotation, float zoom)
Parameters
panXfloatThe number of pixels panned along the X-axis divided by the number of pixels of the longest side of the viewport.
panYfloatThe number of pixels panned along the Y-axis divided by the number of pixels of the longest side of the viewport.
rotationfloatHorizontal rotation in degrees.
zoomfloatScaling factor; 1 for no change, must not be 0.
UpdateProjection()
Update cached versions of OmegaEngine.Graphics.Cameras.Camera.Projection and related matrices
protected override void UpdateProjection()
UpdateView()
Update cached versions of View and related matrices
protected override void UpdateView()