rayzor
annotate src/object.h @ 12:d94a69933a71
lots of stuff, can't remember
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 12 Apr 2014 23:28:24 +0300 |
parents | a68dbf80d547 |
children | 964f8ea5f095 |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef OBJECT_H_ |
nuclear@1 | 2 #define OBJECT_H_ |
nuclear@1 | 3 |
nuclear@12 | 4 #include "vmath.h" |
nuclear@12 | 5 #include "xfnode.h" |
nuclear@12 | 6 |
nuclear@12 | 7 class Object : public SceneNode { |
nuclear@12 | 8 protected: |
nuclear@12 | 9 void pre_draw() const; |
nuclear@12 | 10 void post_draw() const; |
nuclear@12 | 11 |
nuclear@1 | 12 public: |
nuclear@1 | 13 Object(); |
nuclear@1 | 14 virtual ~Object(); |
nuclear@1 | 15 }; |
nuclear@1 | 16 |
nuclear@6 | 17 class Sphere : public Object { |
nuclear@1 | 18 public: |
nuclear@1 | 19 Sphere(); |
nuclear@1 | 20 ~Sphere(); |
nuclear@1 | 21 |
nuclear@1 | 22 void draw() const; |
nuclear@12 | 23 |
nuclear@12 | 24 bool intersect(const Ray &ray, float *dist = 0) const; |
nuclear@12 | 25 }; |
nuclear@12 | 26 |
nuclear@12 | 27 class Box : public Object { |
nuclear@12 | 28 public: |
nuclear@12 | 29 Box(); |
nuclear@12 | 30 ~Box(); |
nuclear@12 | 31 |
nuclear@12 | 32 void draw() const; |
nuclear@12 | 33 |
nuclear@12 | 34 bool intersect(const Ray &ray, float *dist = 0) const; |
nuclear@1 | 35 }; |
nuclear@1 | 36 |
nuclear@1 | 37 #endif // OBJECT_H_ |