Non-rotating and rotating radiative-convective equilibrium