IDirect3DTexture2

Applications use the methods of the IDirect3DTexture2 interface to retrieve and set the properties of textures. This section is a reference to the methods of this interface. For a conceptual overview, see Textures.

You create the IDirect3DTexture2 interface by calling the IDirectDrawSurface::QueryInterface method from the DirectDrawSurface object that was created as a texture map.

The methods of the IDirect3DTexture2 interface can be organized into the following groups:

Handles GetHandle
Loading Load
Palette information PaletteChanged

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

IUnknown AddRef
  QueryInterface
Release

The LPDIRECT3DTEXTURE2 and LPDIRECT3DTEXTURE types are defined as pointers to the IDirect3DTexture2 and IDirect3DTexture interfaces:

typedef struct IDirect3DTexture2    *LPDIRECT3DTEXTURE2;
typedef struct IDirect3DTexture     *LPDIRECT3DTEXTURE;
 

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.

See Also

Textures