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.
The IDirect3DTexture2 interface is an extension of the IDirect3DTexture interface. You create this 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:
The LPDIRECT3DTEXTURE2 and LPDIRECT3DTEXTURE types are defined as pointers to the IDirect3DTexture2 and IDirect3DTexture interfaces:
typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;