OrthoCameraTests UpdateViewportSize 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 UpdateViewportSize()
Examples

[Test, CloseAfterFirstFrame]
public void UpdateViewportSize()
{
    var window = Resolve<Window>();
    var previousSize = window.ViewportPixelSize;
    window.ViewportPixelSize = previousSize / 2;
    Assert.AreEqual(1.0f, camera.ZoomLevel);
}
See Also