Remove loader macros and improve docstrings

This commit is contained in:
oakes
2014-05-16 18:24:43 -04:00
parent a8ea005a63
commit 02bfa2393c
5 changed files with 20 additions and 78 deletions

View File

@@ -64,11 +64,9 @@
:set-region 0 0 100 100)
; create a new texture based on an existing one
(texture (texture \"image.png\"))
; rotate a texture 45 degress counterclockwise around the bottom-left corner
; rotate a texture 45 degress
(assoc (texture \"image.png\")
:angle 45
:origin-x 0
:origin-y 0)"
:angle 45)"
[arg & options]
`(let [entity# (texture* ~arg)]
(u/calls! ^TextureRegion (u/get-obj entity# :object) ~@options)