public void TestConstructor() { DummyBatchDrawer batchDrawer = new DummyBatchDrawer(); using( DrawContextQueuer<TestVertex> queuer = new DrawContextQueuer<TestVertex>( batchDrawer ) ) { } }
public void TestSimpleDrawing() { DummyBatchDrawer batchDrawer = new DummyBatchDrawer(); using( DrawContextQueuer<TestVertex> queuer = new DrawContextQueuer<TestVertex>( batchDrawer ) ) { DummyDrawContext context = new DummyDrawContext(); queuer.Begin(); try { queuer.Queue(TestVertices, 0, 9, PrimitiveType.TriangleList, context); queuer.Queue(TestVertices, 9, 3, PrimitiveType.PointList, context); } finally { queuer.End(); } } // TODO: Check results }