X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmoof%2Fcullable.hh;fp=src%2Fmoof%2Fcullable.hh;h=4e4391e3187d64c05017e1bf1a3868add0276d41;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hp=0000000000000000000000000000000000000000;hpb=299af4f2047e767e5d79501c26444473bda64c64;p=chaz%2Fyoink diff --git a/src/moof/cullable.hh b/src/moof/cullable.hh new file mode 100644 index 0000000..4e4391e --- /dev/null +++ b/src/moof/cullable.hh @@ -0,0 +1,46 @@ + +/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +**] All rights reserved. +* +* vi:ts=4 sw=4 tw=75 +* +* Distributable under the terms and conditions of the 2-clause BSD license; +* see the file COPYING for a complete text of the license. +* +**************************************************************************/ + +#ifndef _MOOF_CULLABLE_HH_ +#define _MOOF_CULLABLE_HH_ + +/** + * \file cullable.hh + * Representation for an object that may or may not be visible. + */ + + +namespace moof { + + +class frustum; + +/** + * Interface for anything that can be culled. + */ + +class cullable +{ +public: + virtual ~cullable() {} + + virtual bool is_visible(const frustum& frustum) const + { + // unless determined otherwise, assume visible + return true; + } +}; + + +} // namespace moof + +#endif // _MOOF_CULLABLE_HH_ +