EffectStateManager.LightEnable Method |
Language: |
Enables or disables a light.
Visual Basic MustOverride Public Sub LightEnable( _
ByVal lightIndex As Integer, _
ByVal isEnabled As Boolean _
)C# public abstract void LightEnable(
int lightIndex,
bool isEnabled
);C++ public:
virtual void LightEnable(
int lightIndex,
bool isEnabled
) abstract;JScript public abstract function LightEnable(
lightIndex : int,
isEnabled : boolean
);
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.
LightEnable 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.