Extension to libGdx library