EffectStateManager.SetLight Method

Language:

Sets a light.

Definition

Visual Basic MustOverride Public Sub SetLight( _
    ByVal lightIndex As Integer, _
    ByVal light As Light _
)
C# public abstract void SetLight(
    int lightIndex,
    Light light
);
C++ public:
virtual void SetLight(
    int lightIndex,
    Lightlight
) abstract;
JScript public abstract function SetLight(
    lightIndex : int,
    light : Light
);

Parameters

lightIndex System.Int32
The zero-based index of the light.
light Microsoft.DirectX.Direct3D.Light
The Light object to set.

Remarks

SetLight 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.