Click or drag to resize
Ab4d.SharpEngine logo

Light Class

Light is a base light class
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.Lights
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class Light : ComponentBase, ILight

The Light type exposes the following members.

Constructors
 NameDescription
Protected methodLight Initializes a new instance of the Light class.
Top
Properties
 NameDescription
Public propertyColor Gets or sets a Color3 that specifies the color of this light.
Public propertyIsEnabled Gets or sets a boolean that specifies if this light is enabled (turned on). When setting this value to false, then this will set the Color to Black. Setting the value back to true will restore the color that was used before the light was disabled.
Public propertyScene Gets or sets the Scene that this Light belongs to.
Top
Methods
 NameDescription
Protected methodDispose Releases unmanaged and managed resources (when disposing is true). This method may be called only from the CheckAndDispose(Boolean) method and must not be called manually by the user.
(Overrides ComponentBaseDispose(Boolean))
Protected methodFinalize Destructor
(Overrides ComponentBaseFinalize)
Protected methodNotifyLightPropertiesChanged NotifyLightPropertiesChanged calls Scene.NotifyChange and sets LightPropertiesChanged dirty flag.
Top
See Also