An undifferentiated cell that develops into a gamete.