Support next version of libGDX
This commit is contained in:
@@ -465,7 +465,7 @@ with the tiled map file at `path` and `unit` scale.
|
||||
|
||||
(defmethod draw! BatchTiledMapRenderer
|
||||
[{:keys [^BatchTiledMapRenderer renderer] :as screen} entities]
|
||||
(let [^SpriteBatch batch (.getSpriteBatch renderer)]
|
||||
(let [^Batch batch (.getSpriteBatch renderer)]
|
||||
(.begin batch)
|
||||
(doseq [entity entities]
|
||||
(e/draw-entity! entity screen batch))
|
||||
@@ -474,7 +474,7 @@ with the tiled map file at `path` and `unit` scale.
|
||||
|
||||
(defmethod draw! Stage
|
||||
[{:keys [^Stage renderer] :as screen} entities]
|
||||
(let [^SpriteBatch batch (.getSpriteBatch renderer)]
|
||||
(let [^Batch batch (.getBatch renderer)]
|
||||
(.begin batch)
|
||||
(doseq [entity entities]
|
||||
(e/draw-entity! entity screen batch))
|
||||
@@ -595,7 +595,7 @@ to overlap correctly with the entities.
|
||||
(when-not (get-in screen [:layers ln])
|
||||
(update-fn! assoc-in [[:layers ln] (split-layer screen ln)])))
|
||||
(when camera (.setView renderer camera))
|
||||
(let [^SpriteBatch batch (.getSpriteBatch renderer)]
|
||||
(let [^Batch batch (.getSpriteBatch renderer)]
|
||||
(.begin batch)
|
||||
(doseq [entity (->> (map #(get-in screen [:layers %]) layer-names)
|
||||
(apply concat entities)
|
||||
|
||||
Reference in New Issue
Block a user