iDevGames Forums
transparent OpenGL saver - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: transparent OpenGL saver (/thread-7680.html)



transparent OpenGL saver - Iceman - Jul 1, 2002 02:10 PM

I found this nifty code to make a screensaver transparent:

- (void)drawRect {
[[self window] setAlphaValue:0.0];
}
So how do you display OpenGL objects in this transparent view?

Thanks,
Iceman


transparent OpenGL saver - GoodDoug - Jul 1, 2002 02:26 PM

Right now, OpenGL Contexts handle their own drawing and erasing and cannot composite over other views (this is for speed reasons).

Once QuartzExtreme hits mainstream, you will be able to composite OpenGL views over other views (especially in the way you are suggesting). But right now you are out of luck.


transparent OpenGL saver - Iceman - Jul 2, 2002 02:16 PM

Yeah that's what I thought. How can the Fluid screen saver have alpha themes?

Iceman


transparent OpenGL saver - Johan - Jul 2, 2002 04:24 PM

I don't know much about OSX, but since it's a screensaver (Quits when user does something), you might as well capture the screenbuffer and use that as a background in your app.

There should be some example code on apples site on how to do this.

Cheers,
Johan


transparent OpenGL saver - Iceman - Jul 3, 2002 11:45 AM

Ah so that's how they do it! Thanks.

Iceman