X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FCullable.hh;h=64b43eb03197c5ec0a76ff20ee52507def0af81f;hp=d543d0f07ecc040f6b744a00fcbb50ee5e16a024;hb=7e898e8ec0ff716e2fc722b883a626a6c346f107;hpb=c2321281bf12a7efaedde930422c7ddbc92080d4 diff --git a/src/Moof/Cullable.hh b/src/Moof/Cullable.hh index d543d0f..64b43eb 100644 --- a/src/Moof/Cullable.hh +++ b/src/Moof/Cullable.hh @@ -29,21 +29,26 @@ #ifndef _MOOF_CULLABLE_HH_ #define _MOOF_CULLABLE_HH_ -#include - namespace Mf { +class Frustum; + /** - * Interface for anything that can be culled. This can include more than just - * frustrum culling. + * Interface for anything that can be culled. */ class Cullable { public: - virtual bool isVisible(const Camera& cam) = 0; + virtual ~Cullable() {} + + virtual bool isVisible(const Frustum& frustum) const + { + // unless determined otherwise, assume visible + return true; + } };