Hi all,
About a year ago there was a brief discussion on this list about
using GL_EXT_framebuffer_object to render to an offscreen framebuffer.
I'm now trying to do the same thing. In particular, I'm creating a
non-interactive application that uses the GPU to render imagery which
I then capture using glReadPixels. During the previous discussion, it
became clear that it was now, and would continue to be, supported to
do framebuffer rendering "regardless of the main context's attachment
to a drawable". So that's what I'm doing, and it's working fine.
Unfortunately, the only working code that I have to create a context
to draw into uses GetMainDevice() to get a display handle that I can
pass to aglChoosePixelFormat() so that I can call aglCreateContext().
The problem is that GetMainDevice() is deprecated as of 10.4.