DXUTGetD3DDevice
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTGetD3DDevice Function


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

Syntax

IDirect3DDevice9 *DXUTGetD3DDevice(VOID);

Return Value

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.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.