EffectStateManager.SetLight(Int32,Light) Method (Microsoft.DirectX.Direct3D)
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,
Light^ light
) 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.