EffectStateManager.SetTexture Method

Language:

Sets a texture.

Definition

Visual Basic MustOverride Public Sub SetTexture( _
    ByVal textureStage As Integer, _
    ByVal texture As BaseTexture _
)
C# public abstract void SetTexture(
    int textureStage,
    BaseTexture texture
);
C++ public:
virtual void SetTexture(
    int textureStage,
    BaseTexturetexture
) abstract;
JScript 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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