Rogue Wave Views |
Rogue Wave Views Documentation Home |
Lights. More...
#include <ilviews/bitmaps/lights.h>
Public Member Functions | |
IlvLightSource (IlFloat r=1.0, IlFloat g=1.0, IlFloat b=1.0) | |
Constructor. More... | |
virtual | ~IlvLightSource () |
Destructor. More... | |
IlFloat | getB () const |
Returns the blue component value. More... | |
IlFloat | getG () const |
Returns the green component value. More... | |
virtual void | getLightVector (IlFloat x, IlFloat y, IlFloat z, IlFloat *result) |
Returns the vector from this instance to a given point in 3D space. More... | |
IlFloat | getR () const |
Returns the red component value. More... | |
void | setB (IlFloat b) |
Sets the blue component value. More... | |
void | setG (IlFloat g) |
Sets the green component value. More... | |
void | setR (IlFloat r) |
Sets the red component value. More... | |
virtual void | update () |
Called when the instance needs internal updating. | |
Lights.
Library: xviews or winviews or mviews (mutually exclusive)
This class is the base class of lights. It allows you to model a light source to use in IlvDiffuseLightingFilter
or IlvSpecularLightingFilter
.
Every light has a color.
IlvDiffuseLightingFilter
, IlvSpecularLightingFilter
, IlvDistantLightSource
, IlvPointLightSource
, IlvSpotLightSource
Constructor.
Initializes a new instance of the class IlvLightSource
.
The default light color is white.
|
virtual |
Destructor.
The destructor releases all the memory used by the instance.
IlFloat IlvLightSource::getB | ( | ) | const |
Returns the blue component value.
IlFloat IlvLightSource::getG | ( | ) | const |
Returns the green component value.
|
virtual |
Returns the vector from this instance to a given point in 3D space.
x | The x position of the point. |
y | The y position of the point. |
z | The z position of the point. |
result | An array of 3 floating point values that will hold the vector. |
Reimplemented in IlvSpotLight, IlvPointLight, and IlvDistantLight.
IlFloat IlvLightSource::getR | ( | ) | const |
Returns the red component value.
void IlvLightSource::setB | ( | IlFloat | b | ) |
Sets the blue component value.
b | The new blue component value. |
void IlvLightSource::setG | ( | IlFloat | g | ) |
Sets the green component value.
g | The new green component value. |
void IlvLightSource::setR | ( | IlFloat | r | ) |
Sets the red component value.
r | The new red component value. |
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.