IDirect3DTexture9 interface

Applications use the methods of the IDirect3DTexture9 interface to manipulate a texture resource.

Methods

The IDirect3DTexture9 interface has these methods.

Method Description
IDirect3DTexture9::AddDirtyRect Adds a dirty region to a texture resource.
IDirect3DTexture9::GetLevelDesc Retrieves a level description of a texture resource.
IDirect3DTexture9::GetSurfaceLevel Retrieves the specified texture surface level.
IDirect3DTexture9::LockRect Locks a rectangle on a texture resource.
IDirect3DTexture9::UnlockRect Unlocks a rectangle on a texture resource.

Remarks

The IDirect3DTexture9 interface can be obtained by calling the IDirect3DDevice9::CreateTexture method or one of the D3DXCreateTexturexxx functions.

This interface inherits additional functionality from the IDirect3DBaseTexture9 interface.

This interface, like all COM interfaces, inherits from the IUnknown interface.

The LPDIRECT3DTEXTURE9 and PDIRECT3DTEXTURE9 types are defined as pointers to the IDirect3DTexture9 interface.

typedef struct IDirect3DTexture9 *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9;

Requirements

   
Target Platform Windows
Header d3d9helper.h (include D3D9.h)

See Also

D3DXCreateTexture

D3DXCreateTextureFromFile

D3DXCreateTextureFromFileEx

D3DXCreateTextureFromFileInMemory

D3DXCreateTextureFromFileInMemoryEx

D3DXCreateTextureFromResource

D3DXCreateTextureFromResourceEx

Direct3D Interfaces

IDirect3DBaseTexture9

IDirect3DDevice9::CreateTexture