]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Entity.hh
fixed layer bugs; generalized octree
[chaz/yoink] / src / Moof / Entity.hh
index f593d0cd316d872468e44b11b290750c4ffcc8fe..dc600103e54e890bcc2e0e5713f69619d3286a25 100644 (file)
 namespace Mf {
 
 
-class Camera;
+class Entity;
+typedef boost::shared_ptr<Entity> EntityP;
+
+class Frustum;
+
 
 /**
  * Interface for game objects that can be drawn to the screen and have a
  * specified size.
  */
 
-class Entity : public Drawable, public Cullable
+class Entity : public Cullable, public Drawable
 {
 public:
-       inline virtual ~Entity() {}
-
-       const Aabb& getAabb() const
-       {
-               return aabb_;
-       }
+       virtual ~Entity() {}
 
-       const Sphere& getSphere() const
+       virtual void drawIfVisible(Scalar alpha, const Frustum& frustum) const
        {
-               return sphere_;
+               if (isVisible(frustum)) draw(alpha);
        }
-
-       virtual void drawIfVisible(Scalar alpha, const Camera& cam) const
-       {
-               if (isVisible(cam)) draw(alpha);
-       }
-
-protected:
-       Aabb    aabb_;
-       Sphere  sphere_;
 };
 
-typedef boost::shared_ptr<Entity> EntityPtr;
-
 
 } // namespace Mf
 
This page took 0.022461 seconds and 4 git commands to generate.