Microsoft DirectX 8.0 (C++)

D3DXCreateSprite

Creates a sprite object.

HRESULT D3DXCreateSprite(
  LPDIRECT3DDEVICE8 pDevice,
  LPD3DXSPRITE* ppSprite
);

Parameters

pDevice
[in] Pointer to an IDirect3DDevice8 interface, the device to be associated with the sprite.
ppSprite
[out] Address of a pointer to an ID3DXSprite interface, representing the created sprite.

Return Values

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

Requirements

  Header: Declared in D3dx8core.h.
  Import Library: Use D3dx8.lib.