Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Phx::GraphicsEngine::LightDescription Class Reference

A base-class for descriptions of a light source in the graphics engine. More...

#include <PhxGraphicsEngine.h>

Inheritance diagram for Phx::GraphicsEngine::LightDescription:

Phx::Description Phx::LockedPtrInterface< Description > Phx::GraphicsEngine::DirectionalLightDescription Phx::GraphicsEngine::PointLightDescription Phx::GraphicsEngine::SpotLightDescription List of all members.

Public Member Functions

virtual void specular (const RgbaColor &specular)=0
 Sets the specular light color.
const RgbaColorspecular (void) const
 Gets the current specular light color.
virtual void diffuse (const RgbaColor &diffuse)=0
 Sets the diffuse light reflectance.
const RgbaColordiffuse (void) const
 Gets the current diffuse reflectance.

Protected Member Functions

void setDiffuse (const RgbaColor &c)
void setSpecular (const RgbaColor &c)

Detailed Description

A base-class for descriptions of a light source in the graphics engine.

See also:
PointLightDescription

DirectionalLightDescription

SpotLightDescription


Member Function Documentation

const RgbaColor& Phx::GraphicsEngine::LightDescription::diffuse void   )  const [inline]
 

Gets the current diffuse reflectance.

Returns:
The amount of each color component of diffuse light that is reflected.

virtual void Phx::GraphicsEngine::LightDescription::diffuse const RgbaColor diffuse  )  [pure virtual]
 

Sets the diffuse light reflectance.

The amount of diffuse light reflected from a surface is related to its angle relative to the light source.

Parameters:
diffuse The amount of each color component of diffuse light that is reflected.

const RgbaColor& Phx::GraphicsEngine::LightDescription::specular void   )  const [inline]
 

Gets the current specular light color.

Returns:
The amount of each specular light color component.

virtual void Phx::GraphicsEngine::LightDescription::specular const RgbaColor specular  )  [pure virtual]
 

Sets the specular light color.

This is the color of light that will contribute to specular highlights.

Parameters:
specular The amount of each color component of specular light that the light source will emit.


The documentation for this class was generated from the following file:
Generated on Mon Jul 10 19:45:29 2006 for Phoenix OSFS by  doxygen 1.4.2