]> Dogcows Code - chaz/yoink/blob - src/moof/cullable.hh
4e4391e3187d64c05017e1bf1a3868add0276d41
[chaz/yoink] / src / moof / cullable.hh
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #ifndef _MOOF_CULLABLE_HH_
13 #define _MOOF_CULLABLE_HH_
14
15 /**
16 * \file cullable.hh
17 * Representation for an object that may or may not be visible.
18 */
19
20
21 namespace moof {
22
23
24 class frustum;
25
26 /**
27 * Interface for anything that can be culled.
28 */
29
30 class cullable
31 {
32 public:
33 virtual ~cullable() {}
34
35 virtual bool is_visible(const frustum& frustum) const
36 {
37 // unless determined otherwise, assume visible
38 return true;
39 }
40 };
41
42
43 } // namespace moof
44
45 #endif // _MOOF_CULLABLE_HH_
46
This page took 0.033874 seconds and 3 git commands to generate.