Graphics interface
[Interfaces]

This interface is used to hide the intersection research process and color evaluation. It is used by the Renderer class. More...

Classes

struct  graphics_data_t
 The exchange data structure. More...
class  GraphicsInterface
 Definition of the GraphicsInterface class. More...
class  GraphicsInterface
 Definition of the GraphicsInterface class. More...

Functions

virtual bool GraphicsInterface::search_intersection (ray &r, graphics_data_t &gdata)=0
 Searchs for the nearest intersection.
virtual void GraphicsInterface::illuminate (ray &r, intersection &inter, vec3 &light_value)=0
 Computes direct illumination.

Variables

float graphics_data_t::radiance
 the radiance of the intersected object
vec3 graphics_data_t::color
 the color of the intersected object (crbnColor + crbnShader)
uint32 graphics_data_t::matter_id
 the matter ID of the intersected object

Detailed Description

This interface is used to hide the intersection research process and color evaluation. It is used by the Renderer class.


Function Documentation

virtual void GraphicsInterface::illuminate ( ray &  r,
intersection &  inter,
vec3 &  light_value 
) [pure virtual, inherited]

Computes direct illumination.

Parameters:
r the original ray,
inter the intersection in wihich we want the local illumination,
light_value the resulting illumination value.

virtual bool GraphicsInterface::search_intersection ( ray &  r,
graphics_data_t gdata 
) [pure virtual, inherited]

Searchs for the nearest intersection.

Parameters:
r the ray to test,
gdata the exchange structure.
Returns:
true if an intersection is found.


Generated on Tue Nov 14 15:40:08 2006 for libcrbn by  doxygen 1.5.0