EffectStateManager.SetLight Method

Language:

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

Sets a light.

Definition

Visual Basic .NET MustOverride Public Sub SetLight( _
    ByVal lightIndex As Integer, _
    ByVal light As Light _
)
C# public abstract void SetLight(
    int lightIndex,
    Light light
);
Managed C++ public: virtual void SetLight(
    int lightIndex,
    Light *light
) = 0;
JScript .NET 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.


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

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