]> Dogcows Code - chaz/yoink/blob - src/TitleLayer.hh
e2b74d37e2ce2802f2e9fbdfc83b05ad9150bbb9
[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 Mf::View
26 {
27 public:
28
29 static TitleLayerP alloc()
30 {
31 return TitleLayerP(new TitleLayer);
32 }
33
34 void didAddToView();
35
36 void update(Mf::Scalar t, Mf::Scalar dt);
37 void draw(Mf::Scalar alpha) const;
38 bool handleEvent(const Mf::Event& event);
39
40 private:
41
42 Mf::Lerp mFadeIn;
43 Mf::ViewP mGameLayer;
44 };
45
46
47 #endif // _TITLELAYER_HH_
48
This page took 0.033527 seconds and 3 git commands to generate.