Gradient Background with OpenGL

Has anybody tried drawing the background of a view with gradient color. Could you please tell me the trick involved in it?


One large quad that covers the whole window will do the work. Not as fast as a glClear, but this is, as far as I know, the fastes way to do it.