I am making simple GUI for my not-so-simple OpenGL game. Since there is a big menu with a lot of control count, I grouped the controls and put them into different windows that could be accessed via buttons in the main menu. So now I would like to replace the buttons with clickable thumbnails of each window and that is why I need to render the GUI to texture.
Currently I have computer with Windows 7 with Geforce 210 video card that supports OpenGL up to 3.3.0 version (but I don't care what version I will use). I have 'dglOpenGL.pas' library for Delphi. I would like to render those windows with controls to textures but because I am n00b at such things, I can't do it (I tried tutorials for C#, but with no working results so far). Any help would be appreciated.
Render-to-texture in OpenGL involves creating a framebuffer object (FBO) and attaching it to a texture. Have a look at the documentation for framebuffer objects for a basic overview.
The general workflow is like this: