Subversion Repositories gelsvn

Rev

Rev 355 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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

Generated by GNU Enscript 1.6.6.
38

Generated by GNU Enscript 1.6.6.
39
 
39
 
40
 
40
 
41
 
41