Powertek.OpenGl.PtLight Class Reference

PtLight. More...

Collaboration diagram for Powertek.OpenGl.PtLight:

Collaboration graph
[legend]

List of all members.

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]


Detailed Description


Constructor & Destructor Documentation

Powertek.OpenGl.PtLight.PtLight (  ) 


Member Function Documentation

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...

Returns:

Vertex3f [] Powertek.OpenGl.PtLight.GetBoundingVertices (  ) 

GetBoundingVertices, return bounding vertices for diffuse shadow volume calculation.

Returns:

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.

Parameters:
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.

Parameters:
samplesXY 

void Powertek.OpenGl.PtLight.ShowBoundingBox (  ) 

ShowBoundingBox.


Member Data Documentation

LightType.

Active.

AffectsDiffuse.

AffectsSpecular.

AmbientOnly.

CauseShadow.

Color.

Intensity.

Name.

Position.

UseGlobal Settings.


Property Documentation

float Powertek.OpenGl.PtLight.Size [get, set]

Size.

PtLightType Powertek.OpenGl.PtLight.Type [get, set]

LightType.


The documentation for this class was generated from the following file:

Generated on Thu Nov 20 04:46:32 2008 for Powertek.OpenGl, 2.0.6.64 by  doxygen 1.5.7.1