CustomVertex.TransformedColored Structure
.NET Framework 3.0
Represents a custom vertex format structure that contains transformed vertices and color information.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
The following code example demonstrates how to use the custom vertex format structure.
// This code example is taken from the // Direct3D Mobile Vertices Sample // of the .NET Compact Framework Samples in the SDK. private void OnCreateDevice(object sender, EventArgs e) { Device dev = (Device)sender; // Now Create the VB vertexBuffer = new VertexBuffer(typeof(CustomVertex.TransformedColored), 3, dev, 0, CustomVertex.TransformedColored.Format, Pool.Managed); vertexBuffer.Created += new System.EventHandler(this.OnCreateVertexBuffer); this.OnCreateVertexBuffer(vertexBuffer, null); }
Community Additions
ADD
Show: