184b7e1907955267b681f1b34387b29521a308da
[MicroTrace.git] / Scene.cxx
1 #include "Scene.hxx"
2 #include "PerspectiveCamera.hxx"
3
4 Scene::Scene()
5 : m_camera(new PerspectiveCamera(Vec3f(0,0,8),
6 Vec3f(0,0,-1),
7 Vec3f(0,1,0),
8 50,
9 640,
10 480)
11 ),
12 m_bgColor(Vec3f(0,0,0))
13 {
14 }
15
16 Scene::~Scene()
17 {
18 delete m_camera;
19 }
20
21 Scene::Scene(const Scene& s)
22 {
23 operator=(s);
24 }
25
26 Scene&
27 Scene::operator=(const Scene& s)
28 {
29 return *this;
30 }
31
32 void
33 Scene::Add(Primitive* p)
34 {
35 }
36
37
38 bool
39 Scene::Intersect(Ray& ray)
40 {
41 return false;
42 }
43
44 bool
45 Scene::Occluded(Ray& ray)
46 {
47 return false;
48 }
49
50 Vec3f
51 Scene::RayTrace(Ray& ray)
52 {
53 return Vec3f();
54 }
55
56 const Camera*
57 Scene::camera() const
58 {
59 return m_camera;
60 }
This page took 0.046672 seconds and 3 git commands to generate.