VertexElementTests SaveDataPoint 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 SaveDataPoint()
Examples

[Test]
public void SaveDataPoint()
{
    var element = new VertexElement(VertexElementType.TextureUV);
    using (var stream = new MemoryStream())
    {
        var writer = new BinaryWriter(stream);
        element.SaveData(writer, Vector2D.UnitX);
        Assert.AreEqual(stream.Length, 8);
    }
}
See Also