ID3DX10Sprite::Begin method

Prepare a device for drawing sprites.

Syntax

HRESULT Begin(
  [in] UINT flags
);

Parameters

flags [in]

Type: UINT

Flags that control how the sprites will be drawn. See D3DX10_SPRITE_FLAG.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DERR_OUTOFVIDEOMEMORY, D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

Remarks

Every call to Begin must be matched with a call to ID3DX10Sprite::End.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Sprite

D3DX Interfaces