Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering3D Entity3D
DeltaEngine.Rendering3D.Shapes Grid3D
Namespace: DeltaEngine.Rendering3D.Shapes
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Grid3D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Grid3D(Size, Single) | Initializes a new instance of the Grid3D class |
![]() | Grid3D(Vector3D, Size, Single) | Initializes a new instance of the Grid3D 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 | |
---|---|---|
![]() | Dimension | |
![]() | GridScale | |
![]() | IsActive | (Overrides DrawableEntity IsActive.) |
![]() | IsPauseable | (Inherited from Entity.) |
![]() | IsVisible | (Inherited from DrawableEntity.) |
![]() | NumberOfComponents | (Inherited from Entity.) |
![]() | Orientation | (Inherited from Entity3D.) |
![]() | Position | |
![]() | RenderLayer | (Inherited from DrawableEntity.) |
![]() | Scale | (Inherited from Entity3D.) |
![]() | UpdatePriority | (Inherited from Entity.) |
Remarks
Examples
[Test] public void RenderQuadraticGridWithSizeOfOne() { var grid = CreateQuadraticGrid(1); new Line3D(Vector3D.Zero, Vector3D.UnitZ, Color.Red); AssertQuadraticGrid(1, grid); foreach (var line in grid.lines) Assert.IsTrue(line.IsActive); }
[Test] public void RenderQuadraticGridWithSizeOfTen() { var grid = CreateQuadraticGrid(10); AssertQuadraticGrid(10, grid); }
[Test, CloseAfterFirstFrame] public void InactivatingInactivatesLines() { var grid = CreateQuadraticGrid(2); grid.IsActive = false; foreach (var line in grid.lines) Assert.IsFalse(line.IsActive); }
See Also