Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering3D Entity3D
DeltaEngine.Rendering3D HierarchyEntity3D
DeltaEngine.Rendering3D Model
DeltaEngine.Rendering3D.Shapes Box
Namespace: DeltaEngine.Rendering3D.Shapes
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Box type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Box(String, Vector3D) | Initializes a new instance of the Box class |
![]() | Box(ModelData, Vector3D) | Initializes a new instance of the Box class |
![]() | Box(Vector3D, Color) | Initializes a new instance of the Box class |
![]() | Box(ModelData, Vector3D, Quaternion) | Initializes a new instance of the Box class |
![]() | Box(Vector3D, Color, Vector3D) | Initializes a new instance of the Box class |
Methods
Fields
Name | Description | |
---|---|---|
![]() | components | (Inherited from Entity.) |
![]() | lastOrientation | (Inherited from Entity3D.) |
![]() | lastPosition | (Inherited from Entity3D.) |
![]() | lastTickLerpComponents |
Each element can either be a Lerp, a Lerp List or an array of Lerp objects.
View code on GitHub (Inherited from DrawableEntity.) |
Properties
Name | Description | |
---|---|---|
![]() | Children | (Inherited from HierarchyEntity3D.) |
![]() | IsActive | (Inherited from HierarchyEntity3D.) |
![]() | IsPauseable | (Inherited from Entity.) |
![]() | IsVisible | (Inherited from DrawableEntity.) |
![]() | NumberOfComponents | (Inherited from Entity.) |
![]() | Orientation | (Inherited from Entity3D.) |
![]() | Parent | (Inherited from HierarchyEntity3D.) |
![]() | Position | (Inherited from Entity3D.) |
![]() | RelativeOrientation | (Inherited from HierarchyEntity3D.) |
![]() | RelativePosition | (Inherited from HierarchyEntity3D.) |
![]() | RenderLayer | (Inherited from DrawableEntity.) |
![]() | Scale | (Inherited from Entity3D.) |
![]() | UpdatePriority | (Inherited from Entity.) |
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