Gaming computers have a tendency to use more CPU than is required for basic processing tasks, which results in a hotter running computer. I would not suggest an all in one type of computer for gaming, the air flow on al all in one computers is not sufficient to allow a gaming compter to keep cool enough.
A gaming computer normally has more cooling fans than most computers, and will last longer for gaming needs.