Subversion Repositories gelsvn

Rev

Rev 346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 349
Line 1... Line 1...
1
#ifndef __PATHTRACER_TRACER__HPP__
1
#ifndef __PATHTRACER_TRACER__HPP__
2
#define __PATHTRACER_TRACER__HPP__
2
#define __PATHTRACER_TRACER__HPP__
3
 
3
 
4
#include "scene.hpp"
4
#include "scene.hpp"
5
 
5
 
6
class tracer
6
class tracer
7
{
7
{
8
public:
8
public:
9
	tracer(int w, int h);
9
    tracer(int w, int h);
10
	virtual ~tracer(void) = 0;
10
    virtual ~tracer(void) = 0;
11
 
11
 
12
	void set_scene(scene*);
12
    void set_scene(scene*);
13
 
13
 
14
	virtual CGLA::Vec3f compute_pixel(int w, int h) = 0;
14
    virtual CGLA::Vec3f compute_pixel(int w, int h) = 0;
15
 
15
 
16
protected:
16
protected:
17
	
17
 
18
	//resolution
18
    //resolution
19
	int width_;
19
    int width_;
20
	int height_;
20
    int height_;
21
 
21
 
22
	//the scene
22
    //the scene
23
	scene* scene_;
23
    scene* scene_;
24
 
24
 
25
};
25
};
26
 
26
 
27
#endif
27
#endif
28
 
28
 
29
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007
29
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007