Jean-Luc Dery (dery++at++Discreet.COM)
Tue, 13 May 1997 20:51:46 -0400
Hy Garret,
It would of been usefull to see how you actually declared the walk function in
your class; but I suspect the member function walk( pfTraverser*, void* ) was
not declared static. Is that correct ??
The function passed to the setTravFuncs arguments should be static or global
functions and not member functions. You will be able to get the current node
pointer from the traverser. Most probably, Performer converters the member
function to a global function pointer and you thus loose access to your class
data member.
If this is the case, you could try something like this:
class people
{
...
public:
type yourVariable;
static int preCull( pfTraverser*, void* );
};
int people::preCull( pfTraverser* trav, void* )
{
people* body = (people*) trav->getNode();
blablabla
...
return PFTRAV_...;
}
Hope this helps,
Jean-Luc
-- _____________________________________________________________________________Jean-Luc Dery Discreet Logic System Engineer 5505 boul. St-Laurent, bureau 5200 3-D Graphics Technology Montreal (Quebec), Canada, H2T 1S6 Tel: (514) 272-0525 #394 Email: dery++at++discreet.com Fax: (514) 272-0585 _____________________________________________________________________________ ======================================================================= 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:13 PDT