VisualCullingTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    DeltaEngine.Rendering3D.Tests VisualCullingTests

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

public class VisualCullingTests : TestWithMocksOrVisually

The VisualCullingTests type exposes the following members.

Constructors

  NameDescription
Public methodVisualCullingTests
Initializes a new instance of the VisualCullingTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodBothPlanesAreVisibleWhenCullingIsDisabled
Public methodFlippedPlaneIsNotVisibleWhenCullingIsEnabled
Public methodInitializeCameraAndGraphicsDevice
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test, ApproveFirstFrameScreenshot]
public void FlippedPlaneIsNotVisibleWhenCullingIsEnabled()
{
    CreateNormalGroundPlane(-1, 0);
    CreateFlippedGroundPlane(1, 0);
    graphicsDevice.CullingMode = Culling.Enabled;
}
[Test, ApproveFirstFrameScreenshot]
public void BothPlanesAreVisibleWhenCullingIsDisabled()
{
    CreateNormalGroundPlane(-1, 0);
    CreateFlippedGroundPlane(1, 0);
    graphicsDevice.CullingMode = Culling.Disabled;
}
See Also