DirectX SDK

ID3DXContext::GetD3D

The ID3DXContext::GetD3D method retrieves a pointer to an IDirect3D7 interface.

LPDIRECT3D7 GetD3D();

Parameters

None.

Return Values

If the method succeeds, the method returns a pointer to an IDirect3D7 interface.

If the method fails, NULL is returned.

Remarks

Applications use the returned IDirect3D7 interface to call Direct3D functions.

Note that a reference count is maintained for the Direct3D object encapsulated by a context object. So, it is the application's responsibility to release the IDirect3D7 interface when it is no longer needed by the application.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.
  Library: Use d3dx.lib.