From: Dick Rous (dick++at++sgi.com)
Date: 02/01/2002 09:15:02
Hi Frans,
did you have a look at /usr/share/Performer/src/pguide/libpfui/pick.c?
Cheers,
Dick.
-----Original Message-----
From: Frans van Hoesel [mailto:F.H.J.van.Hoesel++at++chem.rug.nl]
Sent: Friday, 01 February, 2002 17:09
To: info-performer++at++sgi.com
Subject: pfuInputHandler how to?
Hi,
I'm trying to hack together my first performer 2.4 program.
(we don't have 2.5 version of performer)
As everybody else, I started from perfly sources.
I need to be able to select an object in a scene and move it around.
So I added:
pfuInputHandler(mycallback, ButtonPress);
in the main routine (in the common subdirectory) of perfly.
and wrote mycallback:
void mycallback(int dev, void *val, pfuCustomEvent *pfuevent) {
fprintf(stderr, "mycallback called");
}
Now that is very nice and it actually works (though I also get an event
at Button release), but it is very hard to find any useful information about
pfu routines or for example pfipick.
(the pfipick manual page tell me:
The pfiPick has a complete C++ API following the conventions of general
IRIS Performer C++ API; C++ methods are declared in
/usr/include/Performer/pfui/pfiPick.h.
pfiInit should be called once before any pfiPick routines and before
the
forked creation of any additional processes that will be calling
pfiPick
routines.
which isn't much help is it?)
A question that comes up is : what are those parameters in mycallback?
Is there any slighty more extensive info about the extra pf libraries.
I expect there is because I remember someone stating somewhere that
performer was one of SGI's best documented api's, but I cannot find it.
any clues or pointers are really appreciated.
Best regards,
-frans
_______________________________________________________________
"Hi, my name is Frans, I'm your crazy scientist for today."
Frans van Hoesel hoesel++at++chem.rug.nl
http://hpcv100.rc.rug.nl/~hoesel
_______________________________________________________________
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Fri Feb 01 2002 - 09:17:18 PST