ERY.AgateLib.LightManager Class Reference

The LightManager class keeps a list of Light objects which can be used to setup the lighting in the rendering API. More...

List of all members.

Public Member Functions

int AddPointLight (Vector3 position, Color diffuse)
 Adds a point light to the specified position with the given diffuse color.
int AddPointLight (Vector3 position, Color diffuse, Color ambient)
 Adds a point light to the specified position with the given diffuse and ambient colors.
void DoLighting ()
 This tells the Display to start use the Lights in this LightManager structure for lighting.
void RemoveAt (int index)
 Removes a particular light.
void Add (Light item)
 Adds a Light to the list. If there are more lights than possible, an exception is thrown.
void Clear ()
 Removes all Lights from the list.
IEnumerator< LightGetEnumerator ()
 Enumerates the Lights in the list.

Properties

bool Enabled [get, set]
 Gets or sets a flag indicating whether or not lighting calculations should be performed.
Color Ambient [get, set]
 Gets or sets the global ambient light color. This light color is applied to all objects rendered, regardless of their position.
Light this [int index] [get, set]
 Gets or sets a Light in the list.
int Count [get]
 Gets the number of Lights in the list.


Detailed Description

The LightManager class keeps a list of Light objects which can be used to setup the lighting in the rendering API.


Member Function Documentation

int ERY.AgateLib.LightManager.AddPointLight ( Vector3  position,
Color  diffuse 
)

Adds a point light to the specified position with the given diffuse color.

Parameters:
position 
diffuse 
Returns:

int ERY.AgateLib.LightManager.AddPointLight ( Vector3  position,
Color  diffuse,
Color  ambient 
)

Adds a point light to the specified position with the given diffuse and ambient colors.

Parameters:
position 
diffuse 
ambient 
Returns:

void ERY.AgateLib.LightManager.DoLighting (  ) 

This tells the Display to start use the Lights in this LightManager structure for lighting.

void ERY.AgateLib.LightManager.RemoveAt ( int  index  ) 

Removes a particular light.

Parameters:
index 

void ERY.AgateLib.LightManager.Add ( Light  item  ) 

Adds a Light to the list. If there are more lights than possible, an exception is thrown.

Parameters:
item 

void ERY.AgateLib.LightManager.Clear (  ) 

Removes all Lights from the list.

IEnumerator<Light> ERY.AgateLib.LightManager.GetEnumerator (  ) 

Enumerates the Lights in the list.

Returns:


Property Documentation

bool ERY.AgateLib.LightManager.Enabled [get, set]

Gets or sets a flag indicating whether or not lighting calculations should be performed.

Color ERY.AgateLib.LightManager.Ambient [get, set]

Gets or sets the global ambient light color. This light color is applied to all objects rendered, regardless of their position.

Light ERY.AgateLib.LightManager.this[int index] (  )  [get, set]

Gets or sets a Light in the list.

Parameters:
index 
Returns:

int ERY.AgateLib.LightManager.Count [get]

Gets the number of Lights in the list.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo