+
+ virtual ~Entity() {}
+
+ virtual void drawIfVisible(Scalar alpha, const Frustum& frustum) const
+ {
+ if (isVisible(frustum)) draw(alpha);
+ }
+
+ virtual bool isVisible(const Frustum& frustum) const
+ {
+ return mSphere.isVisible(frustum) && mAabb.isVisible(frustum);
+ }
+