Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
688 khor 1
#ifndef __PATHTRACER_X__H__
2
#define __PATHTRACER_X__H__
3
 
4
#include "scene.h"
5
 
6
class pathtracer
7
{
8
public:
9
    pathtracer(int width, int height, bool explicit_direct, int subsamples);
10
 
11
    CGLA::Vec3f compute_pixel(int w, int h);
12
 
13
    void set_scene(scene*);
14
 
15
private:
16
 
17
    CGLA::Vec3f trace(const ray& r, bool include_emitted);
18
 
19
    //resolution
20
    int width_;
21
    int height_;
22
 
23
    //the scene
24
    scene* scene_;
25
 
26
    //use explicit integration of direct illumination
27
    bool explicit_direct_;
28
 
29
    //misc
30
    int subsamples_;
31
};
32
 
33
#endif
34
 
35
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007