Tesla Graphics Engine Documentation (January 2012)
ILightCollection Interface
TeslaTesla.GraphicsILightCollection
Light collection interface.
Declaration Syntax
C#
public interface ILightCollection : IEnumerable<Light>, 
	IEnumerable, ISavable
Members
All Members Methods Properties



Icon Member Description
Add(Light)
Adds a new light to the collection.

Clear()()()()
Clears all the lights from the collection.

CopyLights(ILightCollection)
Copies all the lights contained from the specified collection, but preserves the lights already present in this collection.

CopyLights(ILightCollection, Int32)
Copies the specified amount of lights contained from the specified collection, but preserves the lights already present in this collection.

GetEnumerator()()()()
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable<(Of <(<'Light>)>)>.)
GetEnumerator()()()()
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable.)
GlobalAmbient
Gets or sets the global ambient color.

IsEnabled
Gets or sets if the light collection is enabled. If disabled, will be ignored by a material's LightLogic.

Item[([( Int32])])
Gets the light at the specified index.

LightCount
Gets the number of lights in the collection.

MaxLights
Gets the maximum number of lights to use, meaning lights from 0 to MaxLights-1 are used when setting lights to the shader.

Read(ISavableReader)
Deserializes the object and populates it from the input.
(Inherited from ISavable.)
RefreshShader
Gets or sets if lights should be sent to the shader.

Remove(Light)
Removes the light from the collection.

RemoveAt(Int32)
Removes the light at the specified index.

Set(ILightCollection)
Resets the collection's data and copies the input light collection's data.

SortLights(IRenderable)
Sorts the lights. Lights that affect the renderable the most are lower-indexed.

Write(ISavableWriter)
Serializes the object and writes it to the output.
(Inherited from ISavable.)

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)