libgdx API

Package com.badlogic.gdx.utils

Interface Summary
Clipboard A very simple clipboard interface for text content.
Disposable Interface for disposable resources.
Json.Serializable  
Json.Serializer<T>  
Pool.Poolable Objects implementing this interface will have Pool.Poolable.reset() called when passed to Pool.free(Object).
 

Class Summary
Array<T> A resizable, ordered or unordered array of objects.
Array.ArrayIterable<T>  
Array.ArrayIterator<T>  
ArrayMap<K,V> An ordered or unordered map of objects.
ArrayMap.Entries<K,V>  
ArrayMap.Keys<K>  
ArrayMap.Values<V>  
AtomicQueue<T> A queue that allows one thread to call AtomicQueue.put(Object) and another thread to call AtomicQueue.poll().
Base64Coder  
BinaryHeap<T extends BinaryHeap.Node>  
BinaryHeap.Node  
BooleanArray A resizable, ordered or unordered boolean array.
BufferUtils Class with static helper methods to increase the speed of array/direct buffer and direct buffer/direct buffer transfers
CharArray A resizable, ordered or unordered char array.
DataInput Extends DataInputStream with additional convenience methods.
DataOutput Extends DataOutputStream with additional convenience methods.
DelayedRemovalArray<T> Queues any removals done after DelayedRemovalArray.begin() is called to occur once DelayedRemovalArray.end() is called.
FloatArray A resizable, ordered or unordered float array.
GdxBuild Builds the JNI wrappers via gdx-jnigen.
GdxNativesLoader  
GwtModuleGenerator Generates the gdx.gwt.xml file by running through the gdx/src/ directory and cross-referencing it with the gdx-backends-gwt directory.
IdentityMap<K,V> An unordered map that uses identity comparison for keys.
IdentityMap.Entries<K,V>  
IdentityMap.Entry<K,V>  
IdentityMap.Keys<K>  
IdentityMap.Values<V>  
IntArray A resizable, ordered or unordered int array.
IntFloatMap An unordered map where the keys are ints and values are floats.
IntFloatMap.Entries  
IntFloatMap.Entry<K>  
IntFloatMap.Keys  
IntFloatMap.Values  
IntIntMap An unordered map where the keys and values are ints.
IntIntMap.Entries  
IntIntMap.Entry<K>  
IntIntMap.Keys  
IntIntMap.Values  
IntMap<V> An unordered map that uses int keys.
IntMap.Entries<V>  
IntMap.Entry<V>  
IntMap.Keys  
IntMap.Values<V>  
Json Reads/writes Java objects to/from JSON, automatically.
Json.ReadOnlySerializer<T>  
JsonReader Lightweight JSON parser.

The default behavior is to parse the JSON into a DOM made up of OrderedMap, Array, String, Float, and Boolean objects.
JsonWriter Builder style API for emitting JSON.
LittleEndianInputStream Taken from http://www.javafaq.nu/java-example-code-1079.html
Logger Simple logger that uses the Application logging facilities to output messages.
LongArray A resizable, ordered or unordered long array.
LongMap<V> An unordered map that uses long keys.
LongMap.Entries<V>  
LongMap.Entry<V>  
LongMap.Keys  
LongMap.Values<V>  
NumberUtils  
ObjectIntMap<K> An unordered map where the values are ints.
ObjectIntMap.Entries<K>  
ObjectIntMap.Entry<K>  
ObjectIntMap.Keys<K>  
ObjectIntMap.Values  
ObjectMap<K,V> An unordered map.
ObjectMap.Entries<K,V>  
ObjectMap.Entry<K,V>  
ObjectMap.Keys<K>  
ObjectMap.Values<V>  
OrderedMap<K,V> An ObjectMap that also stores keys in an Array using the insertion order.
PauseableThread A pausable thread.
PerformanceCounter Class to keep track of the time and load (percentage of total time) a specific task takes.
PerformanceCounters  
Pool<T> A pool of objects that can be reused to avoid allocation.
PooledLinkedList<T> A simple linked list that pools its nodes.
Pools Stores a map of ReflectionPools by type for convenient static access.
ReflectionPool<T> Pool that creates new instances of a type using reflection.
ScreenUtils Class with static helper methods that provide access to the default OpenGL FrameBuffer.
SharedLibraryLoader Loads shared libraries from a natives jar file (desktop) or arm folders (Android).
SnapshotArray<T> Guarantees that array entries provided by SnapshotArray.begin() between indexes 0 and Array.size at the time begin was called will not be modified until SnapshotArray.end() is called.
Sort Provides methods to sort arrays of objects.
SortedIntList<E> A sorted double linked list which uses ints for indexing
SortedIntList.Node<E>  
StringBuilder A StringBuilder that implements equals and hashcode.
Timer Executes tasks in the future on the main loop thread.
Timer.Task Runnable with a cancel method.
TimeUtils Wrapper around System.nanoTime() and System.currentTimeMillis().
XmlReader Lightweight XML parser.
XmlReader.Element  
XmlWriter Builder style API for emitting XML.
 

Enum Summary
JsonWriter.OutputType  
Scaling Various scaling types for fitting one rectangle into another.
 

Exception Summary
GdxRuntimeException Typed runtime exception used throughout libgdx
SerializationException Indicates an error during serialization due to misconfiguration or during deserialization due to invalid input data.
 


libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)