Graphics Cache interface
[Interfaces]

This interface is used to hide the per object intersection research process and is used by the ObjectSet class. It is used by the Renderer class. More...

Classes

class  GraphicsCacheInterface
 Definition of the GraphicsCacheInterface class. More...
class  GraphicsCacheInterface
 Definition of the GraphicsCacheInterface class. More...

Functions

virtual bool GraphicsCacheInterface::intersect (uint32 graphics_id, ray &r, float &distance, packed &data)=0
virtual void GraphicsCacheInterface::compute_intersection (uint32 graphics_id, ray &r, intersection &inter, packed &data)=0
virtual void GraphicsCacheInterface::sample_surface (uint32 graphics_id, uint32 number, vec3 *vtab, vec3 *ntab)=0
 Samples object surface.

Detailed Description

This interface is used to hide the per object intersection research process and is used by the ObjectSet class. It is used by the Renderer class.


Function Documentation

virtual void GraphicsCacheInterface::compute_intersection ( uint32  graphics_id,
ray &  r,
intersection &  inter,
packed &  data 
) [pure virtual, inherited]

Computes the full intersection knowing r, inter.plocal and data

Parameters:
r the used ray,
inter the resulting intersection,
data some information which are coming from intersect.

virtual bool GraphicsCacheInterface::intersect ( uint32  graphics_id,
ray &  r,
float &  distance,
packed &  data 
) [pure virtual, inherited]

Evaluates an intersection test and compute distance from the ray's origin to this point.

Parameters:
r the ray to evaluate,
distance the distance from the ray's origin to the intersection point,
data some place to pack temporaries informations to pass to compute_intersection.
Returns:
true if an intersection is found.

virtual void GraphicsCacheInterface::sample_surface ( uint32  graphics_id,
uint32  number,
vec3 *  vtab,
vec3 *  ntab 
) [pure virtual, inherited]

Samples object surface.

Parameters:
graphics_id the id of the geometry entry,
number the sample number to compute,
vtab the resulting vertex array,
vtab the resulting normal array.


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