Re: transparent bg and window in opengl
Re: transparent bg and window in opengl
- Subject: Re: transparent bg and window in opengl
- From: Gary C Martin <email@hidden>
- Date: Wed, 13 Mar 2002 01:45:59 +0000
Yes sir you sure can - but it does seem to require jumping through a
number of hoops and some loss of OpenGL HW acceleration at the moment.
You have to render your GL to a offscreen buffer then use glReadPixels
to grab the data then convert that to a BitmapImageRep which you can
finally squeeze into a NSWindow custom view.
I am about 98% happy with the code I have right now other than a very
occasional drop through of a mouse click event to windows/views that are
behind. My requirements is for porting MoonDock and another new freeware
app EarthDock into OpenGL.
FYI: Several Apple/ATI folks have mentioned that additions to OpenGL may
be in the pipeline for future X releases to support alpha blending with
the rest of the display (I also have a Radar request in) - right now if
you try and set it up you just get your GL render in a dirty opaque box.
I was planning to release the source once the last few bugs are out.
Regards,
Gary
On Wednesday, March 13, 2002, at 12:20 , Mohammad F. Haque wrote:
if i had a cube which was created in opengl, is it possible to make the
rest of the window and background disappear. just like how you can
shape the window using a image, but i was wondering if it was possible
in opengl.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.