]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Entity.hh
refactoring the scene class
[chaz/yoink] / src / Moof / Entity.hh
index 33efcc9e77ca20afbc362184007306e0ca586c7f..310e0a128cbb52c0371ec742390d3d46144fcaeb 100644 (file)
@@ -43,7 +43,7 @@ namespace Mf {
 class Entity;
 typedef boost::shared_ptr<Entity> EntityP;
 
-class Camera;
+class Frustum;
 
 
 /**
@@ -51,10 +51,10 @@ class Camera;
  * specified size.
  */
 
-class Entity : public Drawable, public Cullable
+class Entity : public Cullable, public Drawable
 {
 public:
-       inline virtual ~Entity() {}
+       virtual ~Entity() {}
 
        const Aabb& getAabb() const
        {
@@ -66,9 +66,9 @@ public:
                return sphere_;
        }
 
-       virtual void drawIfVisible(Scalar alpha, const Camera& cam) const
+       void drawIfVisible(Scalar alpha, const Frustum& frustum) const
        {
-               if (isVisible(cam)) draw(alpha);
+               if (isVisible(frustum)) draw(alpha);
        }
 
 protected:
This page took 0.018049 seconds and 4 git commands to generate.