VertexElementTests SaveDataColor Method Delta Engine Documentation

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SaveDataColor()
Examples

[Test]
public void SaveDataColor()
{
    var element = new VertexElement(VertexElementType.TextureUV);
    using(var stream = new MemoryStream())
    {
        var writer = new BinaryWriter(stream);
        element.SaveData(writer, Color.Red);
        Assert.AreEqual(stream.Length, 4);
    }
}
See Also