Partager via


Texture Class (Microsoft.DirectX.Direct3D)

Manipulates a texture resource.

Definition

Visual Basic NotInheritable Public Class Texture
    Inherits BaseTexture
    Implements IDisposableLeave Site
C# public sealed class Texture : BaseTexture, IDisposableLeave Site
C++ public ref class Texture sealed : BaseTexture, IDisposableLeave Site
JScript public final class Texture extends BaseTexture implements IDisposableLeave Site

Members Table

The following table lists the members exposed by the object.

Events

Event Description
Disposing Occurs when the Dispose method is called or when the Texture object is finalized and collected by the garbage collector of the .NET common language runtime.

Methods

Method Description
AddDirtyRectangle Adds a dirty region to a texture resource.
Dispose Immediately releases the unmanaged resources used by the Texture object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
Finalize Allows the Texture object to free resources before it is destroyed by the garbage collector.
FreePrivateData Frees the specified private data associated with the current resource. Inherited from Resource.
static (Shared in Visual Basic) FromBitmap Creates a texture resource from a bitmap.
static (Shared in Visual Basic) FromStream Creates a texture resource from a stream object.
GenerateMipSubLevels Generates mipmap sublevels. Inherited from BaseTexture.
GetHashCode Returns the hash code for the current instance.
GetLevelDescription Retrieves a level description of a texture resource.
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
GetPrivateData Copies the private data associated with a resource to a buffer. Inherited from Resource.
GetSurfaceLevel Retrieves the specified texture surface level.
LockRectangle Locks a rectangle on a texture resource.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same. Inherited from Resource.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same. Inherited from BaseTexture.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different. Inherited from BaseTexture.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different. Inherited from Resource.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
PreLoad Preloads a managed resource. Inherited from Resource.
raise_Disposing Raises the Microsoft.DirectX.Direct3D.Texture.Disposing event when called from within a derived class.
SetLevelOfDetail Sets the most detailed level of detail (LOD) for a managed texture. Inherited from BaseTexture.
SetPriority Assigns the resource-management priority for the current resource. Inherited from Resource.
SetPrivateData Associates data with the resource that is intended for use by the application. Data is passed by value, and multiple sets of data can be associated with a single resource. Inherited from Resource.
Texture Creates a new instance of the Texture class.
UnlockRectangle Unlocks a rectangle on a texture resource.
UpdateUnmanagedPointer Updates the unmanaged pointer for this Resource object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code. Inherited from Resource.
UpdateUnmanagedPointer Updates the unmanaged pointer for this BaseTexture object. This method supports the Framework infrastructure and is not intended to be used directly in your code. Inherited from BaseTexture.

Properties

Property Description
AutoGenerateFilterType Retrieves or sets the filter type used for automatically generated sublevels. Inherited from BaseTexture.
Device Retrieves the device associated with a resource. Inherited from Resource.
Disposed Gets a value that indicates whether the object is disposed.
LevelCount Retrieves the number of texture levels in a multilevel texture. Inherited from BaseTexture.
LevelOfDetail Retrieves or sets the most detailed level of detail (LOD) for a managed texture. Inherited from BaseTexture.
Priority Retrieves or sets the priority for the current resource. Inherited from Resource.
Type Retrieves the type of a resource. Inherited from Resource.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) IDirect3DTexture9 interface pointer.
UnmanagedComPointer Returns the unmanaged COM IDirect3DResource9 interface pointer. Inherited from Resource.
UnmanagedComPointer Returns the unmanaged COM IDirect3DBaseTexture9 interface pointer. Inherited from BaseTexture.

Inheritance Hierarchy

ObjectLeave Site

MarshalByRefObjectLeave Site

Resource

BaseTexture

Texture

Remarks

This object inherits additional functionality from the BaseTexture object.

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492