]> Dogcows Code - chaz/yoink/blob - src/moof/drawable.hh
4caf0cafa61e4f30b3c9fb1a2f80421f72c5f451
[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 #include <moof/math.hh>
14
15
16 /**
17 * \file drawable.hh
18 * Representation for an object that can be drawn to the screen.
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.034008 seconds and 4 git commands to generate.