moved to latest version.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
(:import [com.badlogic.gdx.graphics Pixmap Pixmap$Format Pixmap$Blending Pixmap$Filter Texture Texture$TextureFilter]
|
||||
[com.badlogic.gdx.graphics.g2d TextureRegion Animation ParticleEffect]
|
||||
[play_clj.entities ParticleEffectEntity]
|
||||
[play_clj Animation2]
|
||||
[com.badlogic.gdx.utils.viewport FitViewport]
|
||||
[com.badlogic.gdx.utils ScreenUtils]
|
||||
[com.badlogic.gdx.assets.loaders ParticleEffectLoader$ParticleEffectParameter]
|
||||
@@ -357,9 +358,9 @@
|
||||
(Math/sqrt (+ (* dx dx) (* dy dy)))))
|
||||
|
||||
|
||||
(defn flip [^Animation anim]
|
||||
(defn flip [^Animation2 anim]
|
||||
(animation (animation! anim :get-frame-duration)
|
||||
(for [src-frame (animation! anim :get-key-frames)
|
||||
(for [src-frame (.getRawKeyFrames ^Animation2 anim )
|
||||
:let [frame (texture (texture! src-frame :get-texture))]]
|
||||
(do
|
||||
(texture! frame :set-region ^TextureRegion src-frame)
|
||||
@@ -656,7 +657,8 @@
|
||||
(log/info "Making fullscreen " width "x" height " as true fullscreen")
|
||||
(.setFullscreenMode Gdx/graphics
|
||||
(.getDisplayMode Gdx/graphics))
|
||||
(set! (.foregroundFPS (-> (class Gdx/graphics)
|
||||
;; TODO not work lwjgl3
|
||||
#_(set! (.foregroundFPS (-> (class Gdx/graphics)
|
||||
(.getDeclaredField (name "config"))
|
||||
(doto (.setAccessible true))
|
||||
(.get Gdx/graphics))) 60)))
|
||||
|
||||
Reference in New Issue
Block a user