Fix libGDX capitalization
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
A Clojure library that provides a wrapper for [LibGDX](http://libgdx.badlogicgames.com/), allowing you to write 2D and 3D games that run on desktop OSes (Windows, OS X, and Linux) and mobile OSes (Android and iOS) with the same Clojure codebase.
|
A Clojure library that provides a wrapper for [libGDX](http://libgdx.badlogicgames.com/), allowing you to write 2D and 3D games that run on desktop OSes (Windows, OS X, and Linux) and mobile OSes (Android and iOS) with the same Clojure codebase.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ Lastly, at any time you can remove a timer:
|
|||||||
|
|
||||||
## Java Interop
|
## Java Interop
|
||||||
|
|
||||||
At some point, you will need to do more than simple positioning and sizing. For that, you'll need to call LibGDX methods directly. You could, of course, use Clojure's [Java interop](http://clojure.org/java_interop) syntax on the `:object` contained within the entity. This is a bit ugly, though, and requires you to do all the importing and type hinting yourself.
|
At some point, you will need to do more than simple positioning and sizing. For that, you'll need to call libGDX methods directly. You could, of course, use Clojure's [Java interop](http://clojure.org/java_interop) syntax on the `:object` contained within the entity. This is a bit ugly, though, and requires you to do all the importing and type hinting yourself.
|
||||||
|
|
||||||
In play-clj, many different calls, such as `texture`, are actually macros that allow you to call the underlying Java methods after the required argument(s). In this case, the underlying class is called [TextureRegion](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/g2d/TextureRegion.html). Consider this:
|
In play-clj, many different calls, such as `texture`, are actually macros that allow you to call the underlying Java methods after the required argument(s). In this case, the underlying class is called [TextureRegion](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/g2d/TextureRegion.html). Consider this:
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ This doclet generates the play-clj doc site.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
1. Download and extract the [LibGDX source code](https://github.com/libgdx/libgdx/releases)
|
1. Download and extract the [libGDX source code](https://github.com/libgdx/libgdx/releases)
|
||||||
2. Run `lein uberjar` in this directory
|
2. Run `lein uberjar` in this directory
|
||||||
3. Run the following command in this directory:
|
3. Run the following command in this directory:
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
(defproject play-clj "0.3.9-SNAPSHOT"
|
(defproject play-clj "0.3.9-SNAPSHOT"
|
||||||
:description "A LibGDX wrapper for easy cross-platform game development"
|
:description "A libGDX wrapper for easy cross-platform game development"
|
||||||
:url "https://github.com/oakes/play-clj"
|
:url "https://github.com/oakes/play-clj"
|
||||||
:license {:name "Public Domain"
|
:license {:name "Public Domain"
|
||||||
:url "http://unlicense.org/UNLICENSE"}
|
:url "http://unlicense.org/UNLICENSE"}
|
||||||
|
|||||||
@@ -90,17 +90,17 @@
|
|||||||
(conj (vec (drop-last 2 args)) (str (name a1) divider (name a2)))))
|
(conj (vec (drop-last 2 args)) (str (name a1) divider (name a2)))))
|
||||||
|
|
||||||
(defn gdx
|
(defn gdx
|
||||||
"Returns a fully-qualified LibGDX symbol."
|
"Returns a fully-qualified libGDX symbol."
|
||||||
[& args]
|
[& args]
|
||||||
(symbol (str main-package "." (join-keys args))))
|
(symbol (str main-package "." (join-keys args))))
|
||||||
|
|
||||||
(defn gdx-field
|
(defn gdx-field
|
||||||
"Returns a fully-qualified LibGDX static method or field."
|
"Returns a fully-qualified libGDX static method or field."
|
||||||
[& args]
|
[& args]
|
||||||
(apply gdx (add-divider args "/")))
|
(apply gdx (add-divider args "/")))
|
||||||
|
|
||||||
(defn gdx-class
|
(defn gdx-class
|
||||||
"Returns a fully-qualified LibGDX static class."
|
"Returns a fully-qualified libGDX static class."
|
||||||
[& args]
|
[& args]
|
||||||
(apply gdx (add-divider args "$")))
|
(apply gdx (add-divider args "$")))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user