Microsoft DirectX 9.0 SDK Update (October 2004)

Device.GetTexture Method

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves a texture assigned to a stage for a device.

Definition

Visual Basic .NET Public Function GetTexture( _
    ByVal stage As Integer _
) As Texture
C# public Texture GetTexture(
    int stage
);
Managed C++ public: Texture* GetTexture(
    int stage
);
JScript .NET public function GetTexture(
    stage : int
) : Texture;

Parameters

stage System.Int32. Stage identifier of the texture to retrieve. Stage identifiers are zero-based.

Return Value

Microsoft.DirectX.Direct3D.Texture . A BaseTexture object that represents the returned texture.

Remarks

Typically, methods that return state do not work on devices created using PureDevice. This method, however, is an exception.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center