]> Dogcows Code - chaz/yoink/blob - src/TitleLayer.hh
90041ee5b7a6b6482f793281d106bd33886e7ca1
[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/Layer.hh>
19 #include <Moof/Math.hh>
20
21
22 class TitleLayer;
23 typedef boost::shared_ptr<TitleLayer> TitleLayerP;
24
25 class TitleLayer : public Mf::Layer
26 {
27 public:
28
29 static TitleLayerP alloc()
30 {
31 return TitleLayerP(new TitleLayer);
32 }
33
34 void addedToCore();
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::LayerP mGameLayer;
44 };
45
46
47 #endif // _TITLELAYER_HH_
48
This page took 0.029147 seconds and 3 git commands to generate.