make the BALL struct consistent with the frambuffer demo