Render to Texture goodness

OK. Maybe this is a dumb question, but I’ve never dealt with render_to_texture before…

Is it possible to extract RGBA info from the texture, or are we limited to RGB?

I ask because I want to store the resultant texture in a file for later use.

Is what I’m asking feasable? Or is it too early in the morning?

Hmmm… I sound like a newb. I need some coffee.

Yes it can be done.

When creating the pixel format set WGL_BIND_TO_TEXTURE_RGBA_ARB to true then when creating the pbuffer set the format to WGL_TEXTURE_RGBA_ARB.