Re: Fade out the window content
Re: Fade out the window content
- Subject: Re: Fade out the window content
- From: Guy English <email@hidden>
- Date: Thu, 10 Feb 2005 10:14:38 -0500
On Wed, 09 Feb 2005 23:53:46 +0100, Lorenzo <email@hidden> wrote:
> Thank you, but... in my window I have a NSOpenGLView which runs an animation
> actually. I can't do what you say. I need to act on the rgba values, but I
> don't know how yet.
Well as others have suggested placing a black rectangle in front of
your view and fading that in will have the same effect. If you want to
fade your OpenGL view I'd suggest doing it the OpenGL way - then
you're not relying on the controller you embed your view in to do the
fading for you. Basically you just want to render a full screen
orthographically projected black quad and adjust the alpha values to
fade it in. Uh, by full screen I mean cover the context. I don't know
how much you know about OpenGL but if you need tips on how to do this
you can search for examples of sprites in OpenGL. If that still
doesn't help you I've got code I can share.
Gyt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden