IsometricCamera 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 amount
)
Remarks

Tests: DeltaEngine.Rendering3D.Tests.Cameras.IsometricCameraTests
Examples

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