Home | All Classes | Grouped Classes | Index | Search

Class CL_LightSource

OpenGL glLight container. More...

Derived from: none
Derived by: none
Group: GL (Display 3D)

#include <ClanLib/gl.h>

Construction:

CL_LightSource

Constructs a light source container.

Attributes:

get_spot_exponent

Returns the intensity distribution of the light.

get_spot_cutoff

Returns the spot cutoff angle (the maximum spread angle of a light source).

get_constant_attenuation

Returns constant attenuation of the light.

get_linear_attenuation

Returns linear attenuation of the light.

get_quadratic_attenuation

Returns quadratic attenuation of the light.

get_ambient_intensity

Returns the ambient (global light) intensity of the light.

get_diffuse_intensity

Returns the diffuse (spread over wide area) intensity of the light.

get_specular_intensity

Returns the specular (mirror reflective) intensity of the light.

get_position

Returns the light position.

get_spot_direction

Returns the light spot direction.

Operations:

set_spot_exponent

Sets the intensity distribution of the light.

set_spot_cutoff

Sets the spot cutoff angle (the maximum spread angle of a light source).

set_constant_attenuation

Sets the constant attenuation of the light.

set_linear_attenuation

Sets linear attenuation of the light.

set_quadratic_attenuation

Sets quadratic attenuation of the light.

set_ambient_intensity

Sets the ambient (global light) intensity of the light.

set_diffuse_intensity

Sets the diffuse (spread over wide area) intensity of the light.

set_specular_intensity

Sets the specular (mirror reflective) intensity of the light.

set_position

Sets the light position.

set_spot_direction

Sets the light spot direction.

set_viewpoint

Sets position and spot direction as a viewpoint.

setup_light

Sends the light configuration to OpenGL.

Detailed description:

!group=GL/Display 3D! !header=gl.h!


Questions or comments, write to the
ClanLib mailing list.