pfuInputHandler how to?

New Message Reply Date view Thread view Subject view Author view

From: Frans van Hoesel (F.H.J.van.Hoesel++at++chem.rug.nl)
Date: 02/01/2002 08:09:20


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
  _______________________________________________________________


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Feb 01 2002 - 08:10:29 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.