Add set-screen-wrapper! function

This commit is contained in:
oakes
2014-04-15 14:11:59 -04:00
parent a7759819bb
commit d36a72e564
2 changed files with 19 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
(defmacro on-gl
"Runs the macro body on the GL thread.
(on-gl (set-screen! hello-world main-screen))"
(on-gl (set-screen! my-game main-screen))"
[& body]
`(app! :post-runnable (fn [] ~@body)))