VertexBuffer Class
.NET Framework 3.0
Manipulates vertex buffer resources.
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 creates a vertex buffer for storing vertices.
// 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); }
System.Object
Microsoft.WindowsMobile.DirectX.Direct3D.BaseMesh
Microsoft.WindowsMobile.DirectX.Direct3D.Resource
Microsoft.WindowsMobile.DirectX.Direct3D.BaseTexture
Microsoft.WindowsMobile.DirectX.Direct3D.VertexBuffer
Microsoft.WindowsMobile.DirectX.Direct3D.BaseMesh
Microsoft.WindowsMobile.DirectX.Direct3D.Resource
Microsoft.WindowsMobile.DirectX.Direct3D.BaseTexture
Microsoft.WindowsMobile.DirectX.Direct3D.VertexBuffer
Community Additions
ADD
Show: