CudaRenderGrid Class Reference

Wrapper for raytracing using uniform grid acceleration structure. More...

#include <Wrapper.h>

Inherits CudaRenderer.

List of all members.

Public Member Functions

 CudaRenderGrid (unsigned width, unsigned height, UniformGrid *grid, int pbo=-1)
 Prepare uniform grid for rendering.
float render (Camera &camera, SceneLights &lights, RenderMode mode)
 Raycast the image.

Private Attributes

float cellSize
 Size of the one cell.
uint3 dim
 Number of cells in each dimension.
UniformGridgrid
 Pointer to the acceleration structure.
cudaArray * cudaGrid
uint4 * triangles
cudaArray * vertices
cudaArray * normals
Material * materials


Detailed Description

Wrapper for raytracing using uniform grid acceleration structure.

Constructor & Destructor Documentation

CudaRenderGrid::CudaRenderGrid ( unsigned  width,
unsigned  height,
UniformGrid grid,
int  pbo = -1 
)

Prepare uniform grid for rendering.

Parameters:
width Initial width of the image.
height Initial height of the image.
grid The uniform grid used for rendering. The wrapper assumes ownership of the structure and deletes it during destruction.


Member Function Documentation

float CudaRenderGrid::render ( Camera camera,
SceneLights &  lights,
RenderMode  mode 
) [virtual]

Raycast the image.

Parameters:
camera The camera used to render the image.
lights The light in the scene.
mode The render mode(primary rays only,primary+shadow,primary+shadow+reflect).

Implements CudaRenderer.


The documentation for this class was generated from the following files:

Generated on Fri Jan 23 00:21:49 2009 for Raytracer by  doxygen 1.5.7.1