Creates a sprite object which is associated with a particular device. Sprite objects are used to draw 2D images to the screen.
HRESULT D3DXCreateSprite( LPDIRECT3DDEVICE9 pDevice, LPD3DXSPRITE * ppSprite );
If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
This interface can be used to draw two dimensional images in screen space of the associated device.
Header: Declared in D3dx9core.h.