EffectStateManager.SetTexture Method

Language:

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

Sets a texture.

Definition

Visual Basic .NET MustOverride Public Sub SetTexture( _
    ByVal textureStage As Integer, _
    ByVal texture As BaseTexture _
)
C# public abstract void SetTexture(
    int textureStage,
    BaseTexture texture
);
Managed C++ public: virtual void SetTexture(
    int textureStage,
    BaseTexture *texture
) = 0;
JScript .NET public abstract function SetTexture(
    textureStage : int,
    texture : BaseTexture
);

Parameters

textureStage System.Int32. The zero-based texture stage index.
texture Microsoft.DirectX.Direct3D.BaseTexture. A BaseTexture object that represents the texture to set.

Remarks

SetTexture is a user-implemented method that is called from an effect during rendering.


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

Feedback? Please provide us with your comments on this topic.