• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: print OpenGLView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >print OpenGLView (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Which menu item called my method? & dock menu issues
  • Next by Date: Re: Question
  • Previous by thread: print OpenGLView
  • Next by thread: printing in landscape
  • Index(es):
    • Date
    • Thread