Microsoft DirectX 8.1 (C++) |
Creates a sprite object which is associated with a particular device. Point sprites are generalizations of generic points, which enable arbitrary shapes to be rendered with textures.
HRESULT D3DXCreateSprite( LPDIRECT3DDEVICE8 pDevice, LPD3DXSPRITE* ppSprite );
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
D3DERR_INVALIDCALL |
E_OUTOFMEMORY |
Point sprites are used as particle systems because they enable high performance rendering of many points with textures.
Header: Declared in D3dx8core.h.
Import Library: Use D3dx8.lib.