diff 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
line wrap: on
line diff
--- a/mde/global.d	Sat Apr 12 14:10:13 2008 +0100
+++ b/mde/global.d	Mon Apr 28 10:59:47 2008 +0100
@@ -24,6 +24,12 @@
 module mde.global;
 
 import mde.input.input;
+import mde.scheduler.Scheduler;
+
+/** Some enums used by per request functions. */
+enum SCHEDULE : Scheduler.ID {
+    DRAW
+};
 
 bool run = true;	// main loop continues if this is true