]>
Dogcows Code - chaz/yoink/blob - src/moof/application.hh
e96198770c56b6c184d51c75fe0a829475c59938
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_
13 #include <moof/event.hh>
14 #include <moof/math.hh>
15 #include <moof/runloop.hh>
16 #include <moof/thread.hh>
17 #include <moof/timer.hh>
21 * \file application.hh
28 // forward declarations
31 class application
: public runloop
35 explicit application(settings
& settings
);
36 virtual ~application() {}
38 virtual void update(scalar t
, scalar dt
) = 0;
39 virtual void draw(scalar alpha
) const = 0;
40 virtual void handle_event(const event
& event
) = 0;
44 void dispatch_update(timer
& timer
, scalar t
);
45 void dispatch_draw(timer
& timer
, scalar t
);
56 scalar inverse_timestep_
;
62 #endif // _MOOF_APPLICATION_HH_
This page took 0.034558 seconds and 4 git commands to generate.