]>
Dogcows Code - chaz/yoink/blob - src/moof/application.hh
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
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.
8 *****************************************************************************/
10 #ifndef _MOOF_APPLICATION_HH_
11 #define _MOOF_APPLICATION_HH_
14 * \file application.hh
18 #include <boost/noncopyable.hpp>
20 #include <moof/event.hh>
21 #include <moof/math.hh>
22 #include <moof/runloop.hh>
23 #include <moof/timer.hh>
29 // forward declarations
32 class application
: public runloop
36 explicit application(settings
& settings
);
37 virtual ~application() {}
39 virtual void update(scalar t
, scalar dt
) = 0;
40 virtual void draw(scalar alpha
) const = 0;
41 virtual void handle_event(const event
& event
) = 0;
45 void dispatch_update(timer
& timer
, scalar t
);
46 void dispatch_draw(timer
& timer
, scalar t
);
57 scalar inverse_timestep_
;
63 #endif // _MOOF_APPLICATION_HH_
This page took 0.0411 seconds and 5 git commands to generate.