PlaneQuad ClassDelta Engine Documentation
Textured rectangular mesh View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Content ContentData
    DeltaEngine.Rendering3D Mesh
      DeltaEngine.Rendering3D PlaneQuad

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

public class PlaneQuad : Mesh

The PlaneQuad type exposes the following members.

Constructors

  NameDescription
Public methodPlaneQuad
Initializes a new instance of the PlaneQuad class
Top
Methods

  NameDescription
Protected methodCreateDefault (Inherited from ContentData.)
Public methodDispose (Inherited from ContentData.)
Protected methodDisposeData (Inherited from Mesh.)
Public methodInternalCreateDefault (Inherited from ContentData.)
Protected methodLoadData (Inherited from Mesh.)
Public methodToString (Inherited from ContentData.)
Top
Fields

  NameDescription
Protected fieldContentChanged (Inherited from ContentData.)
Top
Properties

  NameDescription
Protected propertyAllowCreationIfContentNotFound (Inherited from ContentData.)
Public propertyAnimation (Inherited from Mesh.)
Public propertyGeometry (Inherited from Mesh.)
Public propertyIsAnimated (Inherited from Mesh.)
Public propertyIsDisposed (Inherited from ContentData.)
Public propertyLocalTransform (Inherited from Mesh.)
Public propertyMaterial (Inherited from Mesh.)
Public propertyMetaData (Inherited from ContentData.)
Public propertyName (Inherited from ContentData.)
Public propertySize
Top
Remarks

Tests: DeltaEngine.Rendering3D.Tests.PlaneQuadTests
Examples

6 unit tests call DeltaEngine.Rendering3D.PlaneQuad
[Test, ApproveFirstFrameScreenshot]
public void DrawRedPlane()
{
    SetUpCamera();
    new Model(new ModelData(CreatePlaneQuad()), Vector3D.Zero);
}
[Test, ApproveFirstFrameScreenshot]
public void DrawUncoloredPlane()
{
    SetUpCamera();
    new Model(new ModelData(CreateUncoloredPlaneQuad()), Vector3D.Zero);
}
[Test, ApproveFirstFrameScreenshot]
public void DrawFourPlanesWithoutCulling()
{
    Resolve<Device>().CullingMode = Culling.Disabled;
    SetUpCamera(-3);
    new Model(new ModelData(CreateUncoloredPlaneQuad()), Vector3D.Zero);
    new Model(new ModelData(CreatePlaneQuad(Color.Red)), Vector3D.UnitX * Size.Width);
    new Model(new ModelData(CreatePlaneQuad(Color.Green)), Vector3D.UnitY);
    new Model(new ModelData(CreatePlaneQuad(Color.Blue)), Vector3D.UnitZ * Size.Height);
}
See Also