Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void DrawAndReset() { const int VerticesCount = 32; const int IndicesCount = 48; var vertices = new VertexPosition2DUV[VerticesCount]; var indices = new short[IndicesCount]; buffer2D.Add(null, vertices, indices); Assert.IsFalse(buffer2D.HasDrawn); buffer2D.DrawAllTextureChunks(); Assert.IsTrue(buffer2D.HasDrawn); Assert.AreEqual(512, buffer2D.VertexOffset); Assert.AreEqual(96, buffer2D.IndexOffset); }
See Also