description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID3DXLine::OnLostDevice method - Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device. |
a5c82a58-10f9-44bd-a42f-555867b2c857 |
ID3DXLine::OnLostDevice method (D3dx9core.h) |
reference |
05/31/2018 |
|
|
|
|
Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.
HRESULT OnLostDevice();
This method has no parameters.
Type: HRESULT
If the method succeeds, the return value is S_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.
This method should be called whenever the device is lost or before the user calls IDirect3DDevice9::Reset. Even if the device was not actually lost, ID3DXLine::OnLostDevice is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling IDirect3DDevice9::Reset and then ID3DXLine::OnResetDevice.
Requirement | Value |
---|---|
Header |
|
Library |
|