• 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: OpenGL screen captures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL screen captures


  • Subject: Re: OpenGL screen captures
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 5 Sep 2009 12:04:45 +0200

Le 5 sept. 2009 à 06:06, Development a écrit :

I'm using opengl to do screen captures because that seems to be the fastest way. The problem is that I need the cursor to be visible but it is not. Is there a flag I can set with opengl to make the cursor visible? Or am I going to have to attach an image to it during capture?

The cursor is usually not part of the frame buffer for obvious performance reason (no ned to refresh to redraw when the cursor move). It is handled by the graphic card directly, so I don't think you can capture it.
You can determine if this is the case using CGCursorIsDrawnInFramebuffer().


You can draw a cursor in the result of your capture. An easy way I see to do that, is to simply wrap your freshly captured images data into a CGBitmapContext and draw an image using Quartz drawing.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >OpenGL screen captures (From: Development <email@hidden>)

  • Prev by Date: Code Signing
  • Next by Date: Re: Services Menu in Snow Leopard
  • Previous by thread: OpenGL screen captures
  • Next by thread: Services Menu in Snow Leopard
  • Index(es):
    • Date
    • Thread