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< Light > | GetEnumerator () |
| 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. | |
Adds a point light to the specified position with the given diffuse color.
| position | ||
| diffuse |
Adds a point light to the specified position with the given diffuse and ambient colors.
| position | ||
| diffuse | ||
| ambient |
| 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.
| 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.
| item |
| void ERY.AgateLib.LightManager.Clear | ( | ) |
Removes all Lights from the list.
| IEnumerator<Light> ERY.AgateLib.LightManager.GetEnumerator | ( | ) |
Enumerates the Lights in the list.
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] |
int ERY.AgateLib.LightManager.Count [get] |
Gets the number of Lights in the list.
|
AgateLib Awesome Game and Tool Engine Library |
|