PathCameraTests SetCurrentFrame 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 SetCurrentFrame()
Examples

[Test, CloseAfterFirstFrame]
public void SetCurrentFrame()
{
    PathCamera camera = CreatePathCamera(GetLinearViewMatrixTrack(GridDimension));
    camera.CurrentFrame = 1;
    Assert.AreEqual(1, camera.CurrentFrame);
}
[Test, CloseAfterFirstFrame]
public void SetCurrentFramePastEnd()
{
    PathCamera camera = CreatePathCamera(GetLinearViewMatrixTrack(GridDimension));
    camera.CurrentFrame = 1000;
    Assert.AreEqual(99, camera.CurrentFrame);
}
See Also