Entity 3D representing a simple box.
View code on GitHub
Inheritance Hierarchy
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
The BoxMesh type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | BoxMesh(Vector3D, Material) | Initializes a new instance of the BoxMesh class |
![]() | BoxMesh(Vector3D, Color) | Initializes a new instance of the BoxMesh class |
Methods
Name | Description | |
---|---|---|
![]() | CreateDefault | (Inherited from ContentData.) |
![]() | Dispose | (Inherited from ContentData.) |
![]() | DisposeData | (Inherited from Mesh.) |
![]() | InternalCreateDefault | (Inherited from ContentData.) |
![]() | LoadData | (Inherited from Mesh.) |
![]() | ToString | (Inherited from ContentData.) |
Fields
Name | Description | |
---|---|---|
![]() | ContentChanged | (Inherited from ContentData.) |
Properties
Name | Description | |
---|---|---|
![]() | AllowCreationIfContentNotFound | (Inherited from ContentData.) |
![]() | Animation | (Inherited from Mesh.) |
![]() | Color | |
![]() | Geometry | (Inherited from Mesh.) |
![]() | IsAnimated | (Inherited from Mesh.) |
![]() | IsDisposed | (Inherited from ContentData.) |
![]() | LocalTransform | (Inherited from Mesh.) |
![]() | Material | (Inherited from Mesh.) |
![]() | MetaData | (Inherited from ContentData.) |
![]() | Name | (Inherited from ContentData.) |
![]() | Size |
Remarks
Examples
[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