Add on-gl

This commit is contained in:
oakes
2014-03-31 20:25:51 -04:00
parent b0ebeac813
commit c66f75ed92

View File

@@ -1,5 +1,12 @@
(in-ns 'play-clj.core)
(defmacro on-gl
"Runs the macro body on the GL thread.
(on-gl (set-screen! hello-world main-screen))"
[& body]
`(app! :post-runnable (fn [] ~@body)))
; static fields
(defmacro scaling