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
    }
예제 #2
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
        }
 public void TestConstructor() {
   DummyBatchDrawer batchDrawer = new DummyBatchDrawer();
   using(
     DrawContextQueuer<TestVertex> queuer = new DrawContextQueuer<TestVertex>(
       batchDrawer
     )
   ) { }
 }
 public void TestConstructor() {
   DummyBatchDrawer batchDrawer = new DummyBatchDrawer();
   using(
     ImmediateQueuer<TestVertex> Queuer = new ImmediateQueuer<TestVertex>(
       batchDrawer
     )
   ) { }
 }
예제 #5
0
        public void TestConstructor()
        {
            DummyBatchDrawer batchDrawer = new DummyBatchDrawer();

            using (
                ImmediateQueuer <TestVertex> Queuer = new ImmediateQueuer <TestVertex>(
                    batchDrawer
                    )
                ) { }
        }
예제 #6
0
        public void TestConstructor()
        {
            DummyBatchDrawer batchDrawer = new DummyBatchDrawer();

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