Fix libGDX capitalization

This commit is contained in:
oakes
2014-08-02 16:43:49 -04:00
parent f9a8fe7156
commit eab8caaf63
5 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
## 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

View File

@@ -249,7 +249,7 @@ Lastly, at any time you can remove a timer:
## 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:

View File

@@ -2,7 +2,7 @@ This doclet generates the play-clj doc site.
## 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
3. Run the following command in this directory:

View File

@@ -1,5 +1,5 @@
(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"
:license {:name "Public Domain"
:url "http://unlicense.org/UNLICENSE"}

View File

@@ -90,17 +90,17 @@
(conj (vec (drop-last 2 args)) (str (name a1) divider (name a2)))))
(defn gdx
"Returns a fully-qualified LibGDX symbol."
"Returns a fully-qualified libGDX symbol."
[& args]
(symbol (str main-package "." (join-keys args))))
(defn gdx-field
"Returns a fully-qualified LibGDX static method or field."
"Returns a fully-qualified libGDX static method or field."
[& args]
(apply gdx (add-divider args "/")))
(defn gdx-class
"Returns a fully-qualified LibGDX static class."
"Returns a fully-qualified libGDX static class."
[& args]
(apply gdx (add-divider args "$")))