Beispiel #1
0
        public void TestIndexedDrawing()
        {
            DummyBatchDrawer batchDrawer = new DummyBatchDrawer();

            using (
                DrawContextQueuer <TestVertex> queuer = new DrawContextQueuer <TestVertex>(
                    batchDrawer
                    )
                ) {
                DummyDrawContext context = new DummyDrawContext();

                queuer.Begin();
                try {
                    queuer.Queue(
                        TestVertices, 0, 9,
                        TestIndices, 0, 9,
                        PrimitiveType.TriangleList, context
                        );
                    queuer.Queue(
                        TestVertices, 9, 3,
                        TestIndices, 9, 3,
                        PrimitiveType.PointList, context
                        );
                }
                finally {
                    queuer.End();
                }
            }

            // TODO: Check results
        }
Beispiel #2
0
        public void TestConstructor()
        {
            DummyBatchDrawer batchDrawer = new DummyBatchDrawer();

            using (
                DrawContextQueuer <TestVertex> queuer = new DrawContextQueuer <TestVertex>(
                    batchDrawer
                    )
                ) { }
        }