• 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
Capture screen when full screen OpenGL application running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capture screen when full screen OpenGL application running


  • Subject: Capture screen when full screen OpenGL application running
  • From: Fei Li <email@hidden>
  • Date: Thu, 3 Jul 2003 09:45:01 -0600

Hello all,
I have an application to capture screen at a regular interval when other
application is running. I copy bytes directly from base address(get from
CGDisplayBaseAddress). It works very well under normal condition(Quartz),
but when full screen OpenGL application running(like Keynote), I got a messy
picture. I found this is because when full screen OpenGL running, graphic
cards will store every pixel on the screen in different format then window
server does. I try to use the code which can draw a line on the screen under
Quartz to draw when full screen OpenGL running, it will draw a 64*16 square
on my Power G4 with AGP4X card. But on the G4 Cube which use Rage 128
ProGraphics card, storing format of Quartz and OpenGL is the same.

Furthermore, OpenGL use double buffer, and when display animation, two
buffers swap rapidly, but I found base address only give the address of one
buffer. So even if I can get the correct picture during capture, I will lose
some frame.

So my question is:
1. If anybody know the storing format when OpenGL running, and how to detect
what kind of card is using. Or maybe there's other way to capture screen at
that time.

2. How can I get the other buffer of OpenGL.

Thanks for any information

Fei
_______________________________________________
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.

  • Follow-Ups:
    • Re: Capture screen when full screen OpenGL application running
      • From: John Stauffer <email@hidden>
  • Prev by Date: Re: Obj-C language question: C function within @implementation
  • Next by Date: awakeFromNib and windowWillLoad : basic question
  • Previous by thread: Re: Problem in populating the cells with Images on a one by one basis
  • Next by thread: Re: Capture screen when full screen OpenGL application running
  • Index(es):
    • Date
    • Thread