Mercurial > projects > mde
comparison mde/global.d @ 30:467c74d4804d
Major changes to the scheduler, previously only used by the main loop.
Revamped Scheduler. Functions can be removed, have multiple schedules, have their scheduling changed, etc.
Scheduler has a unittest. Checked all pass.
Main loop scheduler moved to mde. Draw-on-demand currently disabled, simplifying this.
Made mtunitest.d remove the temporary file it uses afterwards.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 28 Apr 2008 10:59:47 +0100 |
parents | 611f7b9063c6 |
children | 316b0230a849 |
comparison
equal
deleted
inserted
replaced
29:f985c28c0ec9 | 30:467c74d4804d |
---|---|
22 * are declared. | 22 * are declared. |
23 */ | 23 */ |
24 module mde.global; | 24 module mde.global; |
25 | 25 |
26 import mde.input.input; | 26 import mde.input.input; |
27 import mde.scheduler.Scheduler; | |
28 | |
29 /** Some enums used by per request functions. */ | |
30 enum SCHEDULE : Scheduler.ID { | |
31 DRAW | |
32 }; | |
27 | 33 |
28 bool run = true; // main loop continues if this is true | 34 bool run = true; // main loop continues if this is true |
29 | 35 |
30 Input input; // Input instance. When multiple users are allowed instances will be per-user. | 36 Input input; // Input instance. When multiple users are allowed instances will be per-user. |