Namespace: DeltaEngine.Rendering3D.Shapes.Tests
Assembly: DeltaEngine.Rendering3D.Shapes.Tests (in DeltaEngine.Rendering3D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering3D.Shapes.Tests (in DeltaEngine.Rendering3D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void RenderGrid() { const int GridSize = 10; const float GridScale = 0.5f; const float HalfGridSize = GridSize * 0.5f; var axisXz = new Vector2D(-HalfGridSize, -HalfGridSize); CreateLookAtCamera(Vector3D.One * 4.0f, Vector3D.Zero); for (int i = 0; i <= GridSize; i++, axisXz.X += 1, axisXz.Y += 1) { new Line3D(new Vector3D(-HalfGridSize * GridScale, axisXz.Y * GridScale, 0.0f), new Vector3D(HalfGridSize * GridScale, axisXz.Y * GridScale, 0.0f), Color.White); new Line3D(new Vector3D(axisXz.X * GridScale, -HalfGridSize * GridScale, 0.0f), new Vector3D(axisXz.X * GridScale, HalfGridSize * GridScale, 0.0f), Color.White); } }
See Also