ID3DXFont::OnResetDevice

Use this method to re-acquire resources and save initial state.

HRESULT OnResetDevice();

Parameters

None.

Return Values

If the method succeeds, the return value is S_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

ID3DXFont::OnResetDevice should be called each time the device is reset (using IDirect3DDevice9::Reset), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

Requirements

Header: Declared in D3dx9core.h.