X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FEntity.hh;h=310e0a128cbb52c0371ec742390d3d46144fcaeb;hp=33efcc9e77ca20afbc362184007306e0ca586c7f;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=df541170776dc4ac4f241ca480812bd70bcb6eca diff --git a/src/Moof/Entity.hh b/src/Moof/Entity.hh index 33efcc9..310e0a1 100644 --- a/src/Moof/Entity.hh +++ b/src/Moof/Entity.hh @@ -43,7 +43,7 @@ namespace Mf { class Entity; typedef boost::shared_ptr 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: