Namespace: DeltaEngine.Rendering3D.Cameras
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering3D.Tests.Cameras.OrthoCameraTests
1 unit tests call DeltaEngine.Rendering3D.Cameras.OrthoCamera.Zoom(System.Single)
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- zoom
- Type: System Single
Remarks
Examples
[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); }
See Also