Platform SDK: DirectX |
The ID3DXSimpleShape::Draw method is used to draw a shape object.
HRESULT Draw();
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 |
This function is used to draw the vertex-buffer generated by one of the shape drawing functions.
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.
IDirect3DDevice7::DrawIndexedPrimitive, IDirect3DDevice7::DrawPrimitive