Start core-ui

This commit is contained in:
oakes
2014-01-08 03:20:05 -05:00
parent e9658884e6
commit fa07f45c3d
5 changed files with 114 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
(in-ns 'play-clj.core)
; 2d
(defmacro image!
[entity k & options]
`(utils/call! ^TextureRegion (:object ~entity) ~k ~@options))
; render
(defmacro tiled-map-renderer!
[{:keys [renderer]} k & options]
`(utils/call! ^BatchTiledMapRenderer ~renderer ~k ~@options))
(defmacro stage!
[{:keys [renderer]} k & options]
`(utils/call! ^Stage ~renderer ~k ~@options))
(defmacro orthographic-camera!
[{:keys [camera]} k & options]
`(utils/call! ^OrthographicCamera ~camera ~k ~@options))
(defmacro perspective-camera!
[{:keys [camera]} k & options]
`(utils/call! ^PerspectiveCamera ~camera ~k ~@options))
; ui