com.badlogic.gdx
Class Gdx
java.lang.Object
com.badlogic.gdx.Gdx
public class Gdx
- extends java.lang.Object
Environment class holding references to the 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
, GL20
and GLU
. 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.
- Author:
- mzechner
Constructor Summary |
Gdx()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
app
public static Application app
graphics
public static Graphics graphics
audio
public static Audio audio
input
public static Input input
files
public static Files files
gl
public static GLCommon gl
gl10
public static GL10 gl10
gl11
public static GL11 gl11
gl20
public static GL20 gl20
glu
public static GLU glu
Gdx
public Gdx()
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)