Re: OpenGL and the Dock
Re: OpenGL and the Dock
- Subject: Re: OpenGL and the Dock
- From: Ethan John <email@hidden>
- Date: Thu, 5 Feb 2004 19:51:16 -0800
Depending on the behavior that you want, you can use NSWindow's
setMiniwindowImage:(NSImage *)anImage to do this. You could grab a
snapshot of your OpenGL view using something like this:
[yourView lockFocus];
[instanceOfABitmapImage initWithFocusedViewRect:[theView bounds]];
[yourView unlockFocus];
Hope that helps.
On Feb 5, 2004, at 6:03 PM, Benjamin Blonder wrote:
I have a window with a NSOpenGLView in it. When I minimize the window
to the dock, the miniwindowImage shows a blank spot where the OpenGL
stuff should be (I also can't properly print the window for what I'm
assuming is the same reason.) My guess is that the OpenGL drawing
happens at a different level than the widget-drawing and so it doesn't
get captured.
I was hoping someone familiar with OpenGL and Cocoa could show me a
good way to capture the OpenGL view's contents and set it as the
window's mini-image.
Thanks in advance!
_______________________________________________
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.
_______________________________________________
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.