public void LinesBufferShouldNotUseIndexBuffer() { var linesBuffer = new MockCircularBuffer(Resolve <Device>(), ContentLoader.Create <ShaderWithFormat>( new ShaderCreationData(ShaderFlags.Position2DTextured)), BlendMode.Normal, VerticesMode.Lines); Assert.IsFalse(linesBuffer.UsesIndexBuffer); }
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); }
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); }
public void LinesBufferShouldNotUseIndexBuffer() { var linesBuffer = new MockCircularBuffer(Resolve<Device>(), ContentLoader.Load<ShaderWithFormat>(Shader.Position2DUV), BlendMode.Normal, VerticesMode.Lines); Assert.IsFalse(linesBuffer.UsesIndexBuffer); }
public void LinesBufferShouldNotUseIndexBuffer() { var linesBuffer = new MockCircularBuffer(Resolve<Device>(), ContentLoader.Create<ShaderWithFormat>( new ShaderCreationData(ShaderFlags.Position2DTextured)), BlendMode.Normal, VerticesMode.Lines); Assert.IsFalse(linesBuffer.UsesIndexBuffer); }