d3d9.dllIDirect3DTexture9
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DTexture9 Interface


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

IDirect3DTexture9 Members

AddDirtyRect Adds a dirty region to a texture resource.
FreePrivateData Frees the specified private data associated with this resource.
GenerateMipSubLevels Generate mipmap sublevels.
GetAutoGenFilterType Get the filter type that is used for automatically generated mipmap sublevels.
GetDevice Retrieves the device associated with a resource.
GetLevelCount Returns the number of texture levels in a multilevel texture.
GetLevelDesc Retrieves a level description of a texture resource.
GetLOD Returns a value clamped to the maximum level of detail (LOD) set for a managed texture (this method is not supported for an unmanaged texture).
GetPriority Retrieves the priority for this resource.
GetPrivateData Copies the private data associated with the resource to a provided buffer.
GetSurfaceLevel Retrieves the specified texture surface level.
GetType Returns the type of the resource.
LockRect Locks a rectangle on a texture resource.
PreLoad Preloads a managed resource.
SetAutoGenFilterType Set the filter type that is used for automatically generated mipmap sublevels.
SetLOD Sets the most detailed LOD for a managed texture.
SetPriority Assigns the resource-management priority for this resource.
SetPrivateData Associates data with the resource that is intended for use by the application, not by Microsoft Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.
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 Component Object Model (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;

Interface Information

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits fromIDirect3DBaseTexture9
Headerd3d9.h
Import libraryd3d9.lib
Minimum operating systems Windows 98

See Also

IDirect3DDevice9::CreateTexture, D3DXCreateTexture, D3DXCreateTextureFromFile, D3DXCreateTextureFromFileEx, D3DXCreateTextureFromFileInMemory, D3DXCreateTextureFromFileInMemoryEx, D3DXCreateTextureFromResource, D3DXCreateTextureFromResourceEx


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.