Platform SDK: DirectX

ID3DXSimpleShape::Draw

The ID3DXSimpleShape::Draw method is used to draw a shape object.

HRESULT Draw(); 

Parameters

None.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value may be one of the following values:

D3DXERR_NULLPOINTER
D3DERR_INVALIDRAMPTEXTURE
D3DERR_INVALIDPRIMITIVETYPE
D3DERR_INVALIDVERTEXTYPE
D3DERR_VERTEXBUFFERLOCKED
DDERR_INVALIDPARAMS
DDERR_WASSTILLDRAWING

Remarks

This function is used to draw the vertex-buffer generated by one of the shape drawing functions.

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 d3dxshapes.h.
  Library: Use d3dx.lib.

See Also

IDirect3DDevice7::DrawIndexedPrimitive, IDirect3DDevice7::DrawPrimitive