]> Dogcows Code - chaz/yoink/blob - src/Moof/Layer.hh
8bbb94bdb93850c9e233199a64917371450e7b1e
[chaz/yoink] / src / Moof / Layer.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_LAYER_HH_
13 #define _MOOF_LAYER_HH_
14
15 #include <boost/shared_ptr.hpp>
16
17 #include <Moof/Event.hh>
18 #include <Moof/Math.hh>
19
20
21 namespace Mf {
22
23
24 class Layer
25 {
26 public:
27
28 virtual ~Layer() {}
29
30 virtual void addedToCore() {}
31 virtual void removedFromCore() {}
32
33 virtual void update(Scalar t, Scalar dt) {}
34 virtual void draw(Scalar alpha) const {}
35 virtual bool handleEvent(const Event& event)
36 {
37 return false;
38 }
39 };
40
41 typedef boost::shared_ptr<Layer> LayerP;
42
43
44 } // namespace Mf
45
46 #endif // _MOOF_LAYER_HH_
47
This page took 0.031389 seconds and 3 git commands to generate.