Applications use the methods of the IDirect3DVertexBuffer interface to manipulate a collection of vertices for use with the IDirect3DDevice3::DrawPrimitiveVB and IDirect3DDevice3::DrawIndexedPrimitiveVB rendering methods. This section is a reference to the methods of this interface. For a conceptual overview, see Vertex Buffers.
This methods of the IDirect3DVertexBuffer interface can be organized into the following groups:
Information | GetVertexBufferDesc |
Vertex data | Lock |
Optimize | |
ProcessVertices | |
Unlock |
The IDirect3DVertexBuffer interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
IUnknown | AddRef |
QueryInterface | |
Release |
The LPDIRECT3DVERTEXBUFFER data type is defined as a pointer to the IDirect3DVertexBuffer interface:
typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in d3d.h.
Import Library: Use ddraw.lib.