OrthoCamera Zoom Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Cameras
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Zoom(
	float zoom
)
Remarks

Tests: DeltaEngine.Rendering3D.Tests.Cameras.OrthoCameraTests
Examples

1 unit tests call DeltaEngine.Rendering3D.Cameras.OrthoCamera.Zoom(System.Single)
[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