Microsoft DirectX 8.0 (C++)

IDirect3DResource8

Applications use the methods of the IDirect3DResource8 interface to query and prepare resources.

To create a texture resource, you can call one of the following methods.

To create a geometry-oriented resource, you can call one of the following methods.

The methods of the IDirect3DResource8 interface can be organized into the following groups.

Devices GetDevice
Information GetType
Private Surface Data FreePrivateData
  GetPrivateData
  SetPrivateData
Resource Management GetPriority
  PreLoad
  SetPriority

The IDirect3DResource8 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.

IUnknown AddRef
  QueryInterface
  Release

The LPDIRECT3DRESOURCE8 and PDIRECT3DRESOURCE8 types are defined as pointers to the IDirect3DResource8 interface.

typedef struct IDirect3DResource8 *LPDIRECT3DRESOURCE8, *PDIRECT3DRESOURCE8;

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.