INFO804 Introduction à l'informatique graphique
|
This structure takes care of rendering a scene. More...
#include <Renderer.h>
Public Member Functions | |
Renderer (Scene &scene) | |
void | setScene (rt::Scene &aScene) |
void | setViewBox (Point3 origin, Vector3 dirUL, Vector3 dirUR, Vector3 dirLL, Vector3 dirLR) |
void | setResolution (int width, int height) |
void | render (Image2D< Color > &image, int max_depth) |
The main rendering routine. | |
Color | trace (const Ray &ray) |
Public Attributes | |
Scene * | ptrScene |
The scene to render. | |
Point3 | myOrigin |
The origin of the camera in space. | |
Vector3 | myDirUL |
Vector3 | myDirUR |
Vector3 | myDirLL |
Vector3 | myDirLR |
int | myWidth |
int | myHeight |
This structure takes care of rendering a scene.
Definition at line 49 of file Renderer.h.
|
inline |
Definition at line 71 of file Renderer.h.
|
inline |
Definition at line 72 of file Renderer.h.
The main rendering routine.
Definition at line 93 of file Renderer.h.
|
inline |
Definition at line 85 of file Renderer.h.
|
inline |
Definition at line 73 of file Renderer.h.
The rendering routine for one ray.
Definition at line 120 of file Renderer.h.
Vector3 rt::Renderer::myDirLL |
(myOrigin, myOrigin+myDirLL) forms a ray going through the lower-left corner pixel of the viewport, i.e. pixel (0,height)
Definition at line 63 of file Renderer.h.
Vector3 rt::Renderer::myDirLR |
(myOrigin, myOrigin+myDirLR) forms a ray going through the lower-right corner pixel of the viewport, i.e. pixel (width,height)
Definition at line 66 of file Renderer.h.
Vector3 rt::Renderer::myDirUL |
(myOrigin, myOrigin+myDirUL) forms a ray going through the upper-left corner pixel of the viewport, i.e. pixel (0,0)
Definition at line 57 of file Renderer.h.
Vector3 rt::Renderer::myDirUR |
(myOrigin, myOrigin+myDirUR) forms a ray going through the upper-right corner pixel of the viewport, i.e. pixel (width,0)
Definition at line 60 of file Renderer.h.
int rt::Renderer::myHeight |
Definition at line 69 of file Renderer.h.
Point3 rt::Renderer::myOrigin |
The origin of the camera in space.
Definition at line 54 of file Renderer.h.
int rt::Renderer::myWidth |
Definition at line 68 of file Renderer.h.
Scene* rt::Renderer::ptrScene |
The scene to render.
Definition at line 52 of file Renderer.h.