cpe::v3_shaded Class Reference

Extension of v3 class to compute vertices with shading. More...

Inheritance diagram for cpe::v3_shaded:
Inheritance graph
[legend]
Collaboration diagram for cpe::v3_shaded:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 v3_shaded ()
 empty constructor
 v3_shaded (const double &x, const double &y, const double &z)
 direct constructor
 v3_shaded (const v3 &x)
 direct constructor from base class
color shading (const color &c, const v3 &normal, const shading_parameters &shading, const light_parameters &light) const
 Compute color for shaded vertex.

Detailed Description

Extension of v3 class to compute vertices with shading.


Constructor & Destructor Documentation

cpe::v3_shaded::v3_shaded (  ) 

empty constructor

cpe::v3_shaded::v3_shaded ( const double &  x,
const double &  y,
const double &  z 
)

direct constructor

cpe::v3_shaded::v3_shaded ( const v3 x  ) 

direct constructor from base class


Member Function Documentation

color cpe::v3_shaded::shading ( const color c,
const v3 normal,
const shading_parameters shading,
const light_parameters light 
) const

Compute color for shaded vertex.

Parameters:
color c: initial color (without shading)
normal n: the normal associated to the current vertex
shading_parameters shading: the shading parameters
light_parameters light: the light

Referenced by cpe::render_engine::render_triangle().


The documentation for this class was generated from the following files:
Generated on Mon Apr 18 20:43:35 2011 by  doxygen 1.6.3