Updated for LibGDX 1.2.0