com.badlogic.gdx
Class Gdx

java.lang.Object
  extended by 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

Field Summary
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 Summary
Gdx()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Gdx

public Gdx()


Copyright © 2013. All Rights Reserved.