ConeMesh ClassDelta Engine Documentation
Inheritance Hierarchy

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

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

public class ConeMesh : Mesh

The ConeMesh type exposes the following members.

Constructors

  NameDescription
Public methodConeMesh(Single, Single, Material, Int32)
Initializes a new instance of the ConeMesh class
Public methodConeMesh(Single, Single, Color, Int32)
Initializes a new instance of the ConeMesh 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.)
Top
Remarks

Tests: DeltaEngine.Rendering3D.Shapes.Tests.ConeMeshTests
Examples

3 unit tests call DeltaEngine.Rendering3D.Shapes.ConeMesh
[Test, ApproveFirstFrameScreenshot]
public void DrawLitCone()
{
    new Grid3D(new Size(20));
    new Model(new ModelData(new ConeMesh(1, 3, new Material(ShaderFlags.LitTextured,
        "DeltaEngineLogo"))), Vector3D.Zero);
}
[Test]
public void DrawRedCone()
{
    new Grid3D(new Size(20));
    new Model(new ModelData(new ConeMesh(1, 3, Color.Red)), Vector3D.Zero);
}
[Test, CloseAfterFirstFrame]
public void DrawWith2DShaderIsNotAllowed()
{
    Assert.Throws<ShaderWithFormat.ShaderFlagsNotSupported>(
        () => new ConeMesh(1, 1, new Material(ShaderFlags.Position2DTextured, "")));
}
See Also