Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an off-screen framebuffer the new-fashioned way




On Oct 23, 2007, at 1:07 AM, Matt Hancher wrote:

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.



Just make new window of the size you desire (and at position 0,0) but never make it visible. That way, you also don't need to rely on any OpenGL extensions.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Creating an off-screen framebuffer the new-fashioned way (From: Matt Hancher <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.