Microsoft DirectX 8.1 (C++)

ID3DXSprite::Begin

Prepares a device for drawing sprites.

HRESULT Begin();

Parameters

None.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be one of the following values.

D3DERR_INVALIDCALL
D3DXERR_INVALIDDATA

Remarks

Calling Begin is optional. If called outside of a Begin/ID3DXSprite::End sequence, the draw functions will internally call Begin and End. To avoid extra overhead, this method should be used if more than one draw function will be called successively.

This method must be called from inside a IDirect3DDevice8::BeginScene and IDirect3DDevice8::EndScene sequence.

Begin cannot be used as a substitute for either IDirect3DDevice8::BeginScene or ID3DXRenderToSurface::BeginScene.

Requirements

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

See Also

ID3DXSprite::End