Remove platform-specific projects

This commit is contained in:
oakes
2013-12-31 22:29:57 -05:00
parent 3446cd0761
commit b711031e80
12 changed files with 1 additions and 24 deletions

28
src/play_clj/utils.clj Normal file
View File

@@ -0,0 +1,28 @@
(ns play-clj.utils
(:require [clojure.string :as s])
(:import [com.badlogic.gdx.utils Array]))
(defn- split-keys
[key]
(-> key name (s/split #"-")))
(defn- join-keys
[keys]
(->> keys (map name) (s/join ".") (str "com.badlogic.gdx.")))
(defn gdx-static-field*
[args]
(->> (last args)
split-keys
(map s/upper-case)
(s/join "_")
(str (join-keys (butlast args)) "/")
symbol))
(defmacro gdx-static-field
[& args]
`~(gdx-static-field* args))
(defn gdx-into-array
[a]
(-> a into-array Array.))