Mercurial > projects > mde
comparison mde/gl.d @ 25:2c28ee04a4ed
Some minor and some futile efforts.
Played around with init functions, had problems, gave up and put them back.
Removed idea for multiple init stages; it's not good for performance or simplicity.
Adjusted exception messages.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 03 Apr 2008 17:26:52 +0100 |
parents | 47478557428d |
children | 611f7b9063c6 |
comparison
equal
deleted
inserted
replaced
24:32eff0e01c05 | 25:2c28ee04a4ed |
---|---|
19 import mde.scheduler.runTime; | 19 import mde.scheduler.runTime; |
20 | 20 |
21 import derelict.sdl.sdl; | 21 import derelict.sdl.sdl; |
22 import derelict.opengl.gl; | 22 import derelict.opengl.gl; |
23 | 23 |
24 static this() { | 24 static this () { |
25 Scheduler.perRequest (RF_KEYS.DRAW, &draw); | 25 Scheduler.perRequest (RF_KEYS.DRAW, &mde.gl.draw); |
26 } | 26 } |
27 | 27 |
28 void glSetup () { | 28 void glSetup () { |
29 glClearColor (0.0f, 0.0f, 0.0f, 0.0f); | 29 glClearColor (0.0f, 0.0f, 0.0f, 0.0f); |
30 } | 30 } |