OrthoCameraTests UpdateCameraZoom Method Delta Engine Documentation

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

public void UpdateCameraZoom()
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