com.badlogic.gdx
Class Gdx
java.lang.Object
com.badlogic.gdx.Gdx
public class Gdx
- extends 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
, 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.
- Author:
- mzechner
Constructor Summary |
Gdx()
|
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
net
public static Net net
gl
public static GLCommon gl
gl10
public static GL10 gl10
gl11
public static GL11 gl11
gl20
public static GL20 gl20
Gdx
public Gdx()
Copyright © 2013. All Rights Reserved.