class DVlight_properties

The properties (ambient, diffuse, position, etc) of a light

Public Fields

[more]int active
Flag as to whether the light is active or not
[more]DVcolor ambient
The ambient color of the light
[more]DVcolor diffuse
The diffuse color of the light
[more]DVcolor specular
The specular color of the light
[more]DVlight_position position
The position of the light (in homogenous coordinates)
[more]DVspotlight_direction spot_direction
The direction of the light, if it is a spotlight
[more]DVlighting_exponent_float spot_exponent
The exponent of the light, if it is a spotlight
[more]DVspotlight_cutoff_float spot_cutoff
The cutoff value of the light, if it is a spotlight
[more]DVnon_negative_float constant_attenuation
The constant attenuation of the light
[more]DVnon_negative_float linear_attenuation
The linear attenuation of the light
[more]DVnon_negative_float quadratic_attenuation
The quadratic attenuation of the light

Public Methods

[more] DVlight_properties()
Constructors
[more] DVlight_properties(const DVlight_properties&)
Copy constructor from a DVlight_properties
[more] DVlight_properties(const DVrich_light_properties&)
Copy constructor from a DVrich_light_properties
[more] ~DVlight_properties()
Destructor
[more]const DVlight_properties& operator=(const DVlight_properties &)
Assignment operator from a DVlight_properties
[more]const DVlight_properties& operator=(const DVrich_light_properties &)
Assignment operator from a DVrich_light_properties
[more]int operator==(const DVlight_properties&) const
Check equaliity
[more]int operator!=(const DVlight_properties&) const
Check inequaliity
[more]int is_spotlight() const
Return true if the light is a spotlight, false otherwise
[more]int is_positional() const
Return true is the light is positional.
[more]void print(ostream&) const


Documentation

The properties (ambient, diffuse, position, etc) of a light
o DVlight_properties()
Constructors

o DVlight_properties(const DVlight_properties&)
Copy constructor from a DVlight_properties

o DVlight_properties(const DVrich_light_properties&)
Copy constructor from a DVrich_light_properties

o ~DVlight_properties()
Destructor

oconst DVlight_properties& operator=(const DVlight_properties &)
Assignment operator from a DVlight_properties

oconst DVlight_properties& operator=(const DVrich_light_properties &)
Assignment operator from a DVrich_light_properties

oint operator==(const DVlight_properties&) const
Check equaliity

oint operator!=(const DVlight_properties&) const
Check inequaliity

oint is_spotlight() const
Return true if the light is a spotlight, false otherwise

oint is_positional() const
Return true is the light is positional. This functino returns true if the light is a point light. In other words, if position.w != 0. Otherwise, the light is directional and it returns false.

ovoid print(ostream&) const

oint active
Flag as to whether the light is active or not

oDVcolor ambient
The ambient color of the light

oDVcolor diffuse
The diffuse color of the light

oDVcolor specular
The specular color of the light

oDVlight_position position
The position of the light (in homogenous coordinates)

oDVspotlight_direction spot_direction
The direction of the light, if it is a spotlight

oDVlighting_exponent_float spot_exponent
The exponent of the light, if it is a spotlight

oDVspotlight_cutoff_float spot_cutoff
The cutoff value of the light, if it is a spotlight

oDVnon_negative_float constant_attenuation
The constant attenuation of the light

oDVnon_negative_float linear_attenuation
The linear attenuation of the light

oDVnon_negative_float quadratic_attenuation
The quadratic attenuation of the light


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.