Orthogonal 3D camera.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Rendering3D.Cameras Camera
DeltaEngine.Rendering3D.Cameras TargetedCamera
DeltaEngine.Rendering3D.Cameras OrthoCamera
Namespace: DeltaEngine.Rendering3D.Cameras
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The OrthoCamera type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | OrthoCamera | Initializes a new instance of the OrthoCamera class |
Methods
Fields
Name | Description | |
---|---|---|
![]() | components | (Inherited from Entity.) |
![]() | window | (Inherited from Camera.) |
Properties
Name | Description | |
---|---|---|
![]() | FarPlane | (Inherited from Camera.) |
![]() | FieldOfView | (Inherited from Camera.) |
![]() | IsActive | (Inherited from Entity.) |
![]() | IsPauseable | (Inherited from Entity.) |
![]() | MaxZoom | |
![]() | MinZoom | |
![]() | NearPlane | (Inherited from Camera.) |
![]() | NumberOfComponents | (Inherited from Entity.) |
![]() | Position | (Overrides Camera Position.) |
![]() | Target | (Inherited from TargetedCamera.) |
![]() | UpdatePriority | (Inherited from Entity.) |
![]() | ZoomLevel | |
![]() | ZoomSmoothFactor |
Remarks
Examples
[Test, CloseAfterFirstFrame] public void UpdateCameraPosition() { Assert.IsTrue(Camera.IsInitialized); Assert.AreEqual(Vector3D.Zero, camera.Position); camera.Position += Vector3D.One * 2; Assert.AreEqual(new Vector3D(2, 2, 2), camera.Position); }
[Test, CloseAfterFirstFrame] public void UpdateCameraZoom() { camera.ZoomLevel = 2.0f; camera.MaxZoom = 10.0f; camera.MinZoom = 1.0f; Assert.AreEqual(2.0f, camera.ZoomLevel); camera.ZoomSmoothFactor = 1.0f; camera.Zoom(1.5f); Assert.AreEqual(3.5f, camera.ZoomLevel); camera.Zoom(10f); Assert.AreEqual(3.5f, camera.ZoomLevel); }
[Test, CloseAfterFirstFrame] public void UpdateCameraTarget() { Assert.AreEqual(Vector3D.Zero, camera.Target); camera.Target += Vector3D.One * 2; Assert.AreEqual(new Vector3D(2, 2, 2), camera.Target); }
See Also