Skip to content

Latest commit

 

History

History
70 lines (41 loc) · 1.83 KB

id3dxline--onlostdevice.md

File metadata and controls

70 lines (41 loc) · 1.83 KB
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
APIRef
kbSyntax
ID3DXLine.OnLostDevice
COM
d3dx9.lib
d3dx9.dll

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.

Syntax

HRESULT OnLostDevice();

Parameters

This method has no parameters.

Return value

Type: HRESULT

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

Remarks

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.

Requirements

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXLine