Make functions pure
This commit is contained in:
@@ -41,14 +41,14 @@
|
|||||||
(defn image-width
|
(defn image-width
|
||||||
([^TextureRegion img]
|
([^TextureRegion img]
|
||||||
(.getRegionWidth img))
|
(.getRegionWidth img))
|
||||||
([^TextureRegion img val]
|
([img val]
|
||||||
(.setRegionWidth img val)))
|
(doto ^TextureRegion (image img) (.setRegionWidth val))))
|
||||||
|
|
||||||
(defn image-height
|
(defn image-height
|
||||||
([^TextureRegion img]
|
([^TextureRegion img]
|
||||||
(.getRegionHeight img))
|
(.getRegionHeight img))
|
||||||
([^TextureRegion img val]
|
([img val]
|
||||||
(.setRegionHeight img val)))
|
(doto ^TextureRegion (image img) (.setRegionHeight val))))
|
||||||
|
|
||||||
(defn split-image
|
(defn split-image
|
||||||
([val size]
|
([val size]
|
||||||
|
|||||||
Reference in New Issue
Block a user