In this screencast (OpenGL video Tutorial), I explain how to add an overlay to your OpenGL window. I also explain how to use glPushAttrib().
See the blog post at: https://davidwparker.com/2011/12/02/opengl-screencast-video-18-overlays/