
Public Member Functions | |
| PtLight () | |
| object | Clone () |
| void | Init () |
| void | Init (Vertex3f position, Vertex3f color, float size, PtLightType type) |
| void | BuildDisplayList () |
| void | SetLightSamples (int samplesXY) |
| Vertex3f[] | GetBoundingVertices () |
| void | Render () |
| void | ShowBoundingBox () |
Public Attributes | |
| String | Name |
| Vertex3f | Position |
| Vertex3f | Color |
| PtLightType | _type |
| float | Intensity |
| bool | CauseShadow |
| bool | UseGlobal |
| bool | Active |
| bool | AffectsDiffuse |
| bool | AffectsSpecular |
| bool | AmbientOnly |
Properties | |
| float | Size [get, set] |
| PtLightType | Type [get, set] |
| Powertek.OpenGl.PtLight.PtLight | ( | ) |
| void Powertek.OpenGl.PtLight.BuildDisplayList | ( | ) |
BuildDisplayList, dont call this from a thread, we need a gl context for this.
| object Powertek.OpenGl.PtLight.Clone | ( | ) |
Clone, create a deep copy object...
| Vertex3f [] Powertek.OpenGl.PtLight.GetBoundingVertices | ( | ) |
GetBoundingVertices, return bounding vertices for diffuse shadow volume calculation.
| void Powertek.OpenGl.PtLight.Init | ( | Vertex3f | position, | |
| Vertex3f | color, | |||
| float | size, | |||
| PtLightType | type | |||
| ) |
Init Light, size means diameter for a spehre and side lengths for the cube.
| position | ||
| color | ||
| size | ||
| type |
| void Powertek.OpenGl.PtLight.Init | ( | ) |
Init Light, use this if all params are already set (ase loader...).
| void Powertek.OpenGl.PtLight.Render | ( | ) |
Render.
| void Powertek.OpenGl.PtLight.SetLightSamples | ( | int | samplesXY | ) |
SetLightSamples, only valid for cube lights.
| samplesXY |
| void Powertek.OpenGl.PtLight.ShowBoundingBox | ( | ) |
ShowBoundingBox.
| PtLightType Powertek.OpenGl.PtLight._type |
LightType.
Active.
AffectsDiffuse.
AffectsSpecular.
AmbientOnly.
CauseShadow.
Intensity.
| String Powertek.OpenGl.PtLight.Name |
Name.
Position.
UseGlobal Settings.
float Powertek.OpenGl.PtLight.Size [get, set] |
Size.
PtLightType Powertek.OpenGl.PtLight.Type [get, set] |
LightType.
1.5.7.1