DXUTGetD3DDevice

Gets a pointer to the IDirect3DDevice9 interface that represents the current device.

IDirect3DDevice9 * DXUTGetD3DDevice();

Parameters

None.

Return Values

Pointer to the IDirect3DDevice9 that represents the current device. NULL is returned if no device has been created. See Remarks.

Remarks

This function exposes access to a global IDirect3DDevice9 object. The reference count on this device interface is not incremented, so a calling function should not release the IDirect3DDevice9 interface pointer returned by this function.

Requirements

Header: Declared in Dxut.h.