Subversion Repositories gelsvn

Rev

Rev 353 | Details | Compare with Previous | Last modification | View Log | RSS feed

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