]> Dogcows Code - chaz/yoink/blob - src/moof/drawable.hh
2f5c6cd09b4ac20261c93722caa39e9cffb6e0d6
[chaz/yoink] / src / moof / drawable.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_DRAWABLE_HH_
11 #define _MOOF_DRAWABLE_HH_
12
13 /**
14 * \file drawable.hh
15 * Representation for an object that can be drawn to the screen.
16 */
17
18 #include <moof/math.hh>
19
20
21 namespace moof {
22
23
24 /**
25 * Interface for anything that can be drawn.
26 */
27 class drawable
28 {
29 public:
30
31 virtual ~drawable() {}
32 virtual void draw(scalar alpha) const = 0;
33 };
34
35
36 } // namespace moof
37
38 #endif // _MOOF_DRAWABLE_HH_
39
This page took 0.030801 seconds and 3 git commands to generate.