rayzor

view src/object.h @ 14:a9a948809c6f

starting the renderer screen, plus misc stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Apr 2014 08:06:21 +0300
parents 964f8ea5f095
children 79609d482762
line source
1 #ifndef OBJECT_H_
2 #define OBJECT_H_
4 #include "vmath.h"
5 #include "snode.h"
7 class Object : public SceneNode {
8 public:
9 Object();
10 virtual ~Object();
11 };
13 class Sphere : public Object {
14 public:
15 Sphere();
16 ~Sphere();
18 void draw(bool emph = false) const;
20 bool intersect(const Ray &ray, float *dist = 0) const;
21 };
23 class Box : public Object {
24 public:
25 Box();
26 ~Box();
28 void draw(bool emph = false) const;
30 bool intersect(const Ray &ray, float *dist = 0) const;
31 };
33 #endif // OBJECT_H_