]> Dogcows Code - chaz/yoink/blob - src/moof/cullable.hh
fixed documentation about where to find licenses
[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 namespace moof {
19
20
21 // forward declarations
22 class frustum;
23
24 /**
25 * Interface for anything that can be culled.
26 */
27 class cullable
28 {
29 public:
30
31 virtual ~cullable() {}
32
33 virtual bool is_visible(const frustum& frustum) const
34 {
35 // unless determined otherwise, assume visible
36 return true;
37 }
38 };
39
40
41 } // namespace moof
42
43 #endif // _MOOF_CULLABLE_HH_
44
This page took 0.029353 seconds and 4 git commands to generate.