?/TD>
Microsoft DirectX 9.0

ID3DXFont::OnLostDevice Method


Releases all references to video memory resources and deletes all stateblocks.

Syntax

HRESULT OnLostDevice(VOID);

Return Value

If the method succeeds, the return value is S_OK.

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

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Remarks

This method should be called whenever the device is lost. Before this object can be used again, the device must be reset and the ID3DXFont::OnResetDevice method called.

See Also

ID3DXFont::OnResetDevice


© 2002 Microsoft Corporation. All rights reserved.