Platform SDK: DirectX

IDirect3DVertexBuffer7

Applications use the methods of the IDirect3DVertexBuffer7 interface to manipulate a collection of vertices for use with the IDirect3DDevice7::DrawPrimitiveVB and IDirect3DDevice7::DrawIndexedPrimitiveVB rendering methods. This section is a reference to the methods of this interface. For a conceptual overview, see Vertex Buffers.

The methods of the IDirect3DVertexBuffer interface can be organized into the following groups:

Information GetVertexBufferDesc
Vertex data Lock
  Optimize
ProcessVertices
ProcessVerticesStrided
Unlock

The IDirect3DVertexBuffer7 interface extends the IDirect3DVertexBuffer interface by adding the IDirect3DVertexBuffer7::ProcessVerticesStrided method, which supports the strided vertex format.

The IDirect3DVertexBuffer7 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

IUnknown AddRef
  QueryInterface
Release

The LPDIRECT3DVERTEXBUFFER7 and LPDIRECT3DVERTEXBUFFER data types are defined as pointers to the IDirect3DVertexBuffer7 and IDirect3DVertexBuffer interfaces:

typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3d.h.

See Also

Vertex Buffers