IsometricCameraTests Zoom 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 Zoom()
Examples

[Test]
public void MoveIsometricCamera()
{
    RegisterCommand(Key.J, () => camera.MoveLeft(MoveDistance));
    RegisterCommand(Key.L, () => camera.MoveRight(MoveDistance));
    RegisterCommand(Key.I, () => camera.MoveUp(MoveDistance));
    RegisterCommand(Key.K, () => camera.MoveDown(MoveDistance));
    RegisterCommand(Key.U, () => camera.Zoom(ZoomAmount));
    RegisterCommand(Key.O, () => camera.Zoom(1 / ZoomAmount));
}
[Test, CloseAfterFirstFrame]
public void Zoom()
{
    camera.Zoom(4.0f);
    Assert.AreEqual(0.25f, camera.ZoomScale);
}
See Also