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