Steve Baker (sbaker++at++link.com)
Thu, 16 Oct 1997 11:07:25 -0500 (CDT)
>
> Is it possible for Performer to make a callback
> before the glXSwapBuffers call?
>
> I need to do a glReadPixels or glCopyPixels, and I'd
> like to do it before the glXSwapBuffers.
Yep - just register your function with:
pfPipeSwapFunc ( pfPipe *, your_function ) ;
Don't forget to call pfSwapPWinBuffers() inside your callback.
Your code should have the form:-
void my_PipeSwapFunc ( pfPipe *pp, pfPipeWindow *pw )
{
...
pfSwapPWinBuffers ( pw ) ;
...
}
Steve Baker 817-619-8776 (Vox/Vox-Mail)
Hughes Training Inc. 817-619-4028 (Fax)
2200 Arlington Downs Road SBaker++at++link.com (eMail)
Arlington, Texas. TX 76005-6171 SJBaker1++at++airmail.net (Personal eMail)
http://www.hti.com http://web2.airmail.net/sjbaker1 (personal)
** Beware of Geeks bearing GIF's. **
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:05 PDT