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, CloseAfterFirstFrame] public void CreateBox() { var box = new BoxMesh(Vector3D.UnitY, Color.Red); Assert.AreEqual(Vector3D.UnitY, box.Size); Assert.AreEqual(Color.Red, box.Color); Assert.AreEqual(8, box.Geometry.NumberOfVertices); Assert.AreEqual(36, box.Geometry.NumberOfIndices); Assert.AreEqual(VertexFormat.Position3DColor, (box.Material.Shader as ShaderWithFormat).Format); }
See Also