Share via


EffectStateManager.SetTexture(Int32,BaseTexture) Method (Microsoft.DirectX.Direct3D)

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.