How does one go about importing a Java class located inside another Java class from Clojure?
The class I am attempting to import is the Pixmap.Format located in the LibGDX library. As play-clj handles the integration with LibGDX for Clojure, there is no problem whatsoever actually importing classes from LibGDX itself. The problem lies in importing the Format class located inside the Pixmap class.
I have tried a couple of different things:
; This I have tried
(ns pfft.test
(:import com.badlogic.gdx.graphics Pixmap.Format))
; And this
(ns pfft.test
(:import com.badlogic.gdx.graphics Pixmap/Format))
; This
(ns pfft.test
(:import com.badlogic.gdx.graphics.Pixmap.Format))
I have also attempted calling the class like this:
(Pixmap/Format/RGBA8888)
But Clojure tells me there is no such field, which there clearly is.
This too, does not work:
((Pixmap/Format)/RGBA8888)
As the...
/RGBA8888
... is not recognized at all.