Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

GLlight Class Reference

List of all members.

Detailed Description

A buffered light.


Public Member Functions

 this (GLenum index)
 Set the parameters.

void ambient (GLfloat r, GLfloat g, GLfloat b)
 Set the ambient color.

void attenuation (GLfloat constant, GLfloat linear, GLfloat quadratic)
 Set the attenuation parameters.

void constantAttenuation (GLfloat value)
 Set the constant attenuation.

void diffuse (GLfloat r, GLfloat g, GLfloat b)
 Set the diffuse color.

void disable ()
 Disable this light.

void enable ()
 Enable this light.

GLboolean isEnabled ()
 Get whether this light is enabled.

void linearAttenuation (GLfloat value)
 Set the linear attenuation.

void position (GLfloat x, GLfloat y, GLfloat z)
 Set the position of the light.

void quadraticAttenuation (GLfloat value)
 Set the quadratic attenuation.

void specular (GLfloat r, GLfloat g, GLfloat b)
 Set the specular color.

void spotDirection (GLfloat x, GLfloat y, GLfloat z)
 Set the normal of the spotlight.

void spotCutoff (GLfloat angle)
 Set the cutoff angle of the spotlight (0 to 90 degrees, or 180 degrees (default) for a normal light).

void spotDirection (vec3 v)
 Set the normal of the spotlight.

void spotExponent (GLfloat factor)
 Set the intensity distribution of the spotlight (0 for diffuse, 128 for hard-edged).


Public Attributes

GLenum index
 LIGHTi value.


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 13:12:52 2003 for dig by doxygen 1.3.2