Direct3D7.CreateVertexBuffer
The Direct3D7.CreateVertexBuffer method creates a vertex buffer object.
object.CreateVertexBuffer( _
desc As D3DVERTEXBUFFERDESC, _
flags As CONST_D3DDPFLAGS) As Direct3DVertexBuffer7
Parameters
- object
- Object expression that resolves to a Direct3D7 object.
- desc
- A D3DVERTEXBUFFERDESC type that describes the format and number of vertices that the vertex buffer will contain.
- flags
- One of the constants of the CONST_D3DDPFLAGS enumeration (flexible vertex format flags) representing the clipping value. Set this parameter to 0 to create a vertex buffer that can contain clipping information for untransformed or transformed vertices, or use the D3DDP_DONOTCLIP flag to create a vertex buffer that will contain transformed vertices, but no clipping information.
Return Values
If the method succeeds, a reference to a Direct3DVertexBuffer7 object is returned.
Error Codes
If the method fails, an error is raised and Err.Number may be set to one of the following error codes:
See Also
Direct3DVertexBuffer7, Vertex Buffers