World sportscar champion and three-time Le Mans 24 Hour race winner Allan McNish has announced his retirement from sports-prototype racing.