class grLight: public grNode

Light definition

Inheritance:


Public Fields

[more]GLfloat SpotExponent
Light spot exponent, values: (0-128)
[more]GLfloat SpotCutoff
Light spot cut off, values: 128 or (0-90)
[more]GLfloat CAttenuation
Light constant attenuation, values: (0, infinity)
[more]GLfloat LAttenuation
Light linear attenuation, values: (0, infinity)
[more]GLfloat QAttenuation
Light quadratic attenuation, values: (0, infinity)
[more]grColor4f Ambient
Light ambient color
[more]grColor4f Diffuse
Light diffuse color
[more]grColor4f Specular
Light specular color
[more]Coord4f Position
Light position, (may be an infinite point)
[more]Coord3f SpotDirection
Light direction

Public Methods

[more] grLight()
Default constructor
[more] ~grLight()
Default distructor
[more]void Get()
Retrieves settings from internal opengl status, relative of this light
[more]void SetZero()
Links this object to the opengl light0. The opengl light0 is the standard opengl light.
[more]char* Name() const
see grNode


Inherited from grNode:

Public Methods

ovoid Render( grStatus & status )
ovoid Select( grStatus & status )
ogrNode* FindByName( const GLuint name )


Documentation

Light definition. This node defines a new user light. See opengl references for the definition of lights parameters. The function SetZero link the object to the light0 and support the manipulation of the standard opengl light. NOTA: questo nodo e' in versione BETA.
o grLight()
Default constructor

o ~grLight()
Default distructor

ovoid Get()
Retrieves settings from internal opengl status, relative of this light

ovoid SetZero()
Links this object to the opengl light0. The opengl light0 is the standard opengl light.

ochar* Name() const
see grNode

oGLfloat SpotExponent
Light spot exponent, values: (0-128)

oGLfloat SpotCutoff
Light spot cut off, values: 128 or (0-90)

oGLfloat CAttenuation
Light constant attenuation, values: (0, infinity)

oGLfloat LAttenuation
Light linear attenuation, values: (0, infinity)

oGLfloat QAttenuation
Light quadratic attenuation, values: (0, infinity)

ogrColor4f Ambient
Light ambient color

ogrColor4f Diffuse
Light diffuse color

ogrColor4f Specular
Light specular color

oCoord4f Position
Light position, (may be an infinite point)

oCoord3f SpotDirection
Light direction


This class has no child classes.
See Also:
opengl.

Alphabetic index HTML hierarchy of classes or Java


GCR, Graphics Library, VCG, IEI-CNR.