public class Gdx
extends java.lang.Object
Application
, Graphics
, Audio
, Files
and
Input
instances. The references are held in public static fields. Do not mess with this! This essentially allows you
static access to all sub systems. It is your responsiblity to keep things thread safe. Don't use Graphics in a thread that is
not the rendering thread or things will go crazy. Really.
There's also references to GLCommon
, GL10
, GL11
, and GL20
. The same rules as above apply. Don't
mess with this or things will break!
This is kind of messy but better than throwing around Graphics and similar instances. I'm aware of the design faux pas.
Modifier and Type | Field and Description |
---|---|
static Application |
app |
static Audio |
audio |
static Files |
files |
static GLCommon |
gl |
static GL10 |
gl10 |
static GL11 |
gl11 |
static GL20 |
gl20 |
static Graphics |
graphics |
static Input |
input |
static Net |
net |
Constructor and Description |
---|
Gdx() |
public static Application app
public static Graphics graphics
public static Audio audio
public static Input input
public static Files files
public static Net net
public static GLCommon gl
public static GL10 gl10
public static GL11 gl11
public static GL20 gl20