BoxMesh ClassDelta Engine Documentation
Entity 3D representing a simple box. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Content ContentData
    DeltaEngine.Rendering3D Mesh
      DeltaEngine.Rendering3D.Shapes BoxMesh

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

public class BoxMesh : Mesh

The BoxMesh type exposes the following members.

Constructors

  NameDescription
Public methodBoxMesh(Vector3D, Material)
Initializes a new instance of the BoxMesh class
Public methodBoxMesh(Vector3D, Color)
Initializes a new instance of the BoxMesh 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 propertyColor
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.Shapes.Tests.BoxMeshTests
Examples

7 unit tests call DeltaEngine.Rendering3D.Shapes.BoxMesh
[Test]
public void DrawLitBox()
{
    new Model(new ModelData(new BoxMesh(Vector3D.One,
        new Material(ShaderFlags.LitTextured, "DeltaEngineLogo"))), Vector3D.Zero);
}
[Test]
public void DrawTexturedBox()
{
    new Model(new ModelData(new BoxMesh(Vector3D.One,
        new Material(ShaderFlags.Textured, "DeltaEngineLogo"))), Vector3D.Zero);
}
[Test]
public void DrawRedBox()
{
    new Model(new ModelData(new BoxMesh(Vector3D.One, Color.Red)), Vector3D.Zero);
}
See Also