DXUTGetD3DObject

Gets a pointer to the IDirect3D9 object.

IDirect3D9 * DXUTGetD3DObject();

Parameters

None.

Return Values

Pointer to the IDirect3D9 object. NULL is returned if no IDirect3D9 object has been created. See Remarks.

Remarks

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

Requirements

Header: Declared in Dxut.h.