DirectX SDK

ID3DXSimpleShape::GetVB

The ID3DXSimpleShape::GetVB method is used to obtain vertex information from shape objects.

LPDIRECT3DVERTEXBUFFER7 GetVB(); 

Parameters

None.

Return Values

This method returns a pointer to an IDirect3DVertexBuffer7 interface.

Remarks

This method will increase the reference count of the vertex buffer, so you should call Release on the returned vertex buffer when finished with it.

When you use one of the shape drawing methods to draw a shape, you can specify the number of texture coordinates. Direct3DX will then allocate the appropriate amount of space in the vertex buffer.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxshapes.h.
  Library: Use d3dx.lib.

See Also

Vertex Buffers