]> Dogcows Code - chaz/yoink/blob - src/TitleLayer.hh
initial runloop implementation
[chaz/yoink] / src / TitleLayer.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 _TITLELAYER_HH_
13 #define _TITLELAYER_HH_
14
15 #include <boost/shared_ptr.hpp>
16
17 #include <moof/interpolator.hh>
18 #include <moof/math.hh>
19 #include <moof/view.hh>
20
21
22 class TitleLayer;
23 typedef boost::shared_ptr<TitleLayer> TitleLayerP;
24
25 class TitleLayer : public moof::view
26 {
27 public:
28
29 static TitleLayerP alloc()
30 {
31 return TitleLayerP(new TitleLayer);
32 }
33
34 void did_add_to_view();
35
36 void update(moof::scalar t, moof::scalar dt);
37 void draw(moof::scalar alpha) const;
38 bool handle_event(const moof::event& event);
39
40 private:
41
42 moof::lerp_scalar mFadeIn;
43 moof::view_ptr mGameLayer;
44 };
45
46
47 #endif // _TITLELAYER_HH_
48
This page took 0.032448 seconds and 4 git commands to generate.