Mercurial > projects > mde
comparison examples/guiDemo.d @ 104:ee209602770d
Cleaned up Options.d removing old storage method. It's now possible to get a ContentList of the whole of Options.
Tweaked translation strings (added name and desc to Options classes).
Replaced Options.addSubClass (class, "name") with Options.this("name").
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 13:07:46 +0000 |
parents | 49e7cfed4b34 |
children | aba2dd815a1f |
comparison
equal
deleted
inserted
replaced
103:42e241e7be3e | 104:ee209602770d |
---|---|
65 * be called at the end to optimise. */ | 65 * be called at the end to optimise. */ |
66 mainSchedule.add (SCHEDULE.DRAW, &Screen.draw).request = true; // Draw, per event and first frame only. | 66 mainSchedule.add (SCHEDULE.DRAW, &Screen.draw).request = true; // Draw, per event and first frame only. |
67 mainSchedule.add (mainSchedule.getNewID, &mde.events.pollEvents).frame = true; | 67 mainSchedule.add (mainSchedule.getNewID, &mde.events.pollEvents).frame = true; |
68 //END Main loop setup | 68 //END Main loop setup |
69 | 69 |
70 double pollInterval = miscOpts.pollInterval(); | |
70 while (run) { | 71 while (run) { |
71 mainSchedule.execute (Clock.now()); | 72 mainSchedule.execute (Clock.now()); |
72 | 73 |
73 Thread.sleep (miscOpts.pollInterval()); // sleep this many seconds | 74 Thread.sleep (pollInterval); // sleep this many seconds |
74 } | 75 } |
75 | 76 |
76 return 0; // cleanup handled by init's DTOR | 77 return 0; // cleanup handled by init's DTOR |
77 } | 78 } |