EffectStateManager.LightEnable Method

Language:

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

Enables or disables a light.

Definition

Visual Basic .NET MustOverride Public Sub LightEnable( _
    ByVal lightIndex As Integer, _
    ByVal isEnabled As Boolean _
)
C# public abstract void LightEnable(
    int lightIndex,
    bool isEnabled
);
Managed C++ public: virtual void LightEnable(
    int lightIndex,
    bool isEnabled
) = 0;
JScript .NET public abstract function LightEnable(
    lightIndex : int,
    isEnabled : boolean
);

Parameters

lightIndex System.Int32. An integer that represents the index of the light to enable or disable.
isEnabled System.Boolean. Set to true to enable the light. Set to false to disable the light.

Remarks

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