]>
Dogcows Code - chaz/yoink/blob - src/moof/application.hh
494e98ded4ef8910cccaa4b6115cfd2e17b701dd
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
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.
10 **************************************************************************/
12 #ifndef _MOOF_APPLICATION_HH_
13 #define _MOOF_APPLICATION_HH_
16 * \file application.hh
20 #include <boost/noncopyable.hpp>
22 #include <moof/event.hh>
23 #include <moof/math.hh>
24 #include <moof/runloop.hh>
25 #include <moof/timer.hh>
33 class application
: public runloop
37 application(settings
& settings
);
38 virtual ~application() {}
40 virtual void update(scalar t
, scalar dt
) = 0;
41 virtual void draw(scalar alpha
) const = 0;
42 virtual void handle_event(const event
& event
) = 0;
47 void dispatch_update(timer
& timer
, scalar t
);
48 void dispatch_draw(timer
& timer
, scalar t
);
60 scalar inverse_timestep_
;
66 #endif // _MOOF_APPLICATION_HH_
This page took 0.039548 seconds and 4 git commands to generate.