Click or drag to resize
DigitalRuneLight Class
Defines the properties of a light source.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsLight
    More...

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public abstract class Light : INamedObject

The Light type exposes the following members.

Constructors
  NameDescription
Protected methodLight
Initializes a new instance of the Light class.
Top
Methods
  NameDescription
Public methodClone
Creates a new Light that is a clone (deep copy) of the current instance.
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified Light.
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the Light derived class.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetIntensity
Gets the (approximated) light intensity at the given distance.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyName
Gets or sets the name of the light.
Public propertyShape
Gets (or sets) the shape of the light volume.
Top
Remarks

Light is the base class for all light sources: see AmbientLight, DirectionalLight, PointLight, Spotlight, and ProjectorLight. A Light defines the properties of a light source, like color, intensity, extent, etc. However, it does not define the position of a light source, or its direction. Position and orientation are defined by creating a LightNode and adding it to a IScene. Multiple LightNodes can share the same Light object.

Each light has a Shape - a 3D shape that defines the space that is lit by the light source. See Shape for more information.

Cloning:
Lights are cloneable. Clone creates a deep copy of the current light source - unless documented otherwise (see derived classes). Most properties including the Shape are duplicated.

See Also
Inheritance Hierarchy