コード例 #1
0
        public void LinesBufferShouldNotUseIndexBuffer()
        {
            var linesBuffer = new MockCircularBuffer(Resolve <Device>(),
                                                     ContentLoader.Create <ShaderWithFormat>(
                                                         new ShaderCreationData(ShaderFlags.Position2DTextured)), BlendMode.Normal,
                                                     VerticesMode.Lines);

            Assert.IsFalse(linesBuffer.UsesIndexBuffer);
        }
コード例 #2
0
 public void CreateBuffer()
 {
     buffer2D = new MockCircularBuffer(Resolve<Device>(),
         ContentLoader.Load<ShaderWithFormat>(Shader.Position2DUV), BlendMode.Normal,
         VerticesMode.Triangles);
     buffer3D = new MockCircularBuffer(Resolve<Device>(),
         ContentLoader.Load<ShaderWithFormat>(Shader.Position3DUV), BlendMode.Normal,
         VerticesMode.Triangles);
     image = ContentLoader.Load<Image>("DeltaEngineLogo");
     Assert.IsTrue(buffer2D.IsCreated);
 }
コード例 #3
0
 public void CreateBuffer()
 {
     buffer2D = new MockCircularBuffer(Resolve <Device>(),
                                       ContentLoader.Create <ShaderWithFormat>(
                                           new ShaderCreationData(ShaderFlags.Position2DTextured)), BlendMode.Normal,
                                       VerticesMode.Triangles);
     buffer3D = new MockCircularBuffer(Resolve <Device>(),
                                       ContentLoader.Create <ShaderWithFormat>(
                                           new ShaderCreationData(ShaderFlags.Textured)), BlendMode.Normal, VerticesMode.Triangles);
     image = ContentLoader.Load <Image>("DeltaEngineLogo");
     Assert.IsTrue(buffer2D.IsCreated);
 }
コード例 #4
0
 public void LinesBufferShouldNotUseIndexBuffer()
 {
     var linesBuffer = new MockCircularBuffer(Resolve<Device>(),
         ContentLoader.Load<ShaderWithFormat>(Shader.Position2DUV), BlendMode.Normal,
         VerticesMode.Lines);
     Assert.IsFalse(linesBuffer.UsesIndexBuffer);
 }
コード例 #5
0
		public void LinesBufferShouldNotUseIndexBuffer()
		{
			var linesBuffer = new MockCircularBuffer(Resolve<Device>(),
				ContentLoader.Create<ShaderWithFormat>(
				new ShaderCreationData(ShaderFlags.Position2DTextured)), BlendMode.Normal,
				VerticesMode.Lines);
			Assert.IsFalse(linesBuffer.UsesIndexBuffer);
		}