Re: print OpenGLView
Re: print OpenGLView
- Subject: Re: print OpenGLView
- From: Andrew Platzer <email@hidden>
- Date: Mon, 3 Dec 2001 17:52:58 -0800
On Sunday, December 2, 2001, at 06:19 , Gerriet M. Denkmann wrote:
I have a subclass of OpenGLView which displays nicely on the screen.
But when I send a print: message to this thing, my drawRect: method gets
called, but I get a paper with absolutely nothing on it.
What am I doing wrong?
OpenGL output is rendered to a different buffer and Quartz printing does
not record OpenGL calls, only 2D drawing calls. You need to use
glReadPixels and stuff the bits into an NSBitmapImageRep.
Search the archive for similar posts since this sort of thing has been
discussed before.
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e