Bernard Leclerc (bleclerc++at++cae.ca)
Tue, 27 May 1997 22:41:02 -0400
> Is it possible to catch performer related print statements that come
> when certain Performer calls are made in an application? I would like to
> direct these printfs to let's say a GUI. How can this be done?
Hello Anita,
Are you referring to print statement such as this one?
PF Notice: Using 60Hz video rate.
If it's the case, it's easy to catch up these printfs using pfNotifyHandler().
#include <Performer/pr.h>
void notifyHandler(pfNotifyData* data)
{
if (data->severity <= pfGetNotifyLevel())
send data->emsg to your GUI;
}
void main()
{
...
pfNotifyHandler(notifyHandler);
...
}
See pfNotify(3pf) for the complete man page.
Bernard Leclerc, Technical Leader, 3-D Graphics Applications
CAE Electronics Ltd. (http://www.cae.ca)
8585 Cote De Liesse, Saint-Laurent, Quebec, Canada, H4L-4X4
tel: +1 514 341 2000 extension 2275, fax: +1 514 340 5496
=======================================================================
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:55:18 PDT