diff --git a/doclet/resources/classes.edn b/doclet/resources/classes.edn index 38bc21f..dc4a5a3 100644 --- a/doclet/resources/classes.edn +++ b/doclet/resources/classes.edn @@ -85,7 +85,7 @@ "G3dModelLoader" {"loader :g3d-model" :constructors "loader! :g3d-model" :methods} "GearJointDef" {"joint-def :gear" :fields} - "GeometryUtils" {"geometry!" :static-methods} + "GeometryUtils" {"geometry" :static-methods} "Graphics" {"graphics!" :methods} "GridPoint2" {"grid-point-2" :methods "grid-point-2!" :methods} @@ -110,7 +110,7 @@ "Input.Buttons" {"button-code" :static-fields "button-pressed?" :static-fields} "Interpolation" {"interpolation" :static-classes} - "Intersector" {"intersector!" :static-methods} + "Intersector" {"intersector" :static-methods} "IntAttribute" {"attribute :int" :constructors "attribute-type :int" :static-fields "attribute! :int" :static-methods} @@ -131,7 +131,7 @@ "map-objects!" :methods} "Material" {"material" :methods "material!" :methods} - "MathUtils" {"math!" :static-methods} + "MathUtils" {"math" :static-methods} "MapLayer" {"map-layer" :methods "map-layer!" :methods} "Matrix3" {"matrix-3" :methods diff --git a/src/play_clj/math.clj b/src/play_clj/math.clj index 2c48061..a477f2e 100644 --- a/src/play_clj/math.clj +++ b/src/play_clj/math.clj @@ -8,7 +8,7 @@ ; static methods/fields -(defmacro geometry! +(defmacro geometry "Calls a single static method on [GeometryUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/GeometryUtils.html)." [k & options] `(~(u/gdx-field :math :GeometryUtils (u/key->camel k)) ~@options)) @@ -20,17 +20,17 @@ [k] `~(u/gdx-class :math :Interpolation (u/key->pascal k))) -(defmacro intersector! +(defmacro intersector "Calls a single static method on [Intersector](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Intersector.html). - (intersector! :is-point-in-triangle 0 1 0 0 1 2 3 0)" + (intersector :is-point-in-triangle 0 1 0 0 1 2 3 0)" [k & options] `(~(u/gdx-field :math :Intersector (u/key->camel k)) ~@options)) -(defmacro math! +(defmacro math "Calls a single static method on [MathUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/MathUtils.html). - (math! :ceil 0.1)" + (math :ceil 0.1)" [k & options] `(~(u/gdx-field :math :MathUtils (u/key->camel k)) ~@options))