updated for libgdx 1.0