Microsoft DirectX 8.1 (C++)

ID3DXFont::Begin

Prepares a device for drawing text.

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

This method is optional. If a DrawText method is called outside of a Begin and ID3DXFont::End pair, then Microsoft® Direct3D® will call Begin and End.

Requirements

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

See Also

ID3DXFont::End