class DVrich_light_properties

A class for a rich light property.

Public Fields

[more]int active
Contains 1 if the light is active
[more]DVcolor_type ambient
Ambient color of light
[more]DVcolor_type diffuse
Diffuse color of light
[more]DVcolor_type specular
Specular color of light
[more]DVlight_position_type position
Light position
[more]DVspotlight_direction_type spot_direction
Spotlight direction
[more]DVlighting_exponent_float_type spot_exponent
Spoltlight exponent
[more]DVspotlight_cutoff_float_type spot_cutoff
Spotlight cutoff angle
[more]DVnon_negative_float_type constant_attenuation
Spotlight constant attenuation
[more]DVnon_negative_float_type linear_attenuation
Spotlight linear attenuation
[more]DVnon_negative_float_type quadratic_attenuation
Spotlight quadratic attenuation

Public Methods

[more] DVrich_light_properties()
The default constructor
[more] DVrich_light_properties(const DVrich_light_properties&)
Copy constructor from another DVrich_light_properties
[more] DVrich_light_properties(const DVlight_properties&)
Copy constructor from a DVlight_properties
[more] ~DVrich_light_properties()
Destructor
[more]const DVrich_light_properties& operator=(const DVrich_light_properties&)
Assignment operator from another DVrich_light_properties
[more]const DVrich_light_properties& operator=(const DVlight_properties&)
Assignment operator from a DVlight_properties
[more]int operator==(const DVrich_light_properties&) const
Check equality
[more]int operator!=(const DVrich_light_properties&) const
Check inequality
[more]int is_spotlight() const
Return 1 if it is a spotlight
[more]int is_positional() const
Return 1 if it is a position (i.e. point or directional) light
[more]void print(ostream&) const
Print routine


Documentation

A class for a rich light property. The difference between a rich property and a normal on is that the rich property may either be "explicit" in which case the data for the property is stored locally, or "named" in which case the data for the property is stored in a global object. The idea is that when the global object is modified, then so are all of the objects which point at that table.
o DVrich_light_properties()
The default constructor

o DVrich_light_properties(const DVrich_light_properties&)
Copy constructor from another DVrich_light_properties

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

o ~DVrich_light_properties()
Destructor

oconst DVrich_light_properties& operator=(const DVrich_light_properties&)
Assignment operator from another DVrich_light_properties

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

oint operator==(const DVrich_light_properties&) const
Check equality

oint operator!=(const DVrich_light_properties&) const
Check inequality

oint is_spotlight() const
Return 1 if it is a spotlight

oint is_positional() const
Return 1 if it is a position (i.e. point or directional) light

ovoid print(ostream&) const
Print routine

oint active
Contains 1 if the light is active

oDVcolor_type ambient
Ambient color of light

oDVcolor_type diffuse
Diffuse color of light

oDVcolor_type specular
Specular color of light

oDVlight_position_type position
Light position

oDVspotlight_direction_type spot_direction
Spotlight direction

oDVlighting_exponent_float_type spot_exponent
Spoltlight exponent

oDVspotlight_cutoff_float_type spot_cutoff
Spotlight cutoff angle

oDVnon_negative_float_type constant_attenuation
Spotlight constant attenuation

oDVnon_negative_float_type linear_attenuation
Spotlight linear attenuation

oDVnon_negative_float_type quadratic_attenuation
Spotlight quadratic attenuation


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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