Dirk Luesebrink (crux++at++artcom.de)
Fri, 09 May 1997 04:35:38 -0400
one callback per node is an uneeccesarry limitation. so i implemented a
similar scheme like you did. in case i found callbacks and data on
nodes installed by some loader i just dared to wrap them up in my
scheme.
pfNode* someNode;
for(which in PFTRAV_ISECT, PFTRAV_APP, PFTRAV_CULL, PFTRAV_DRAW) {
someNode->getTravFunc(which, & preCB, &postCB);
data = someNode->getTravData(int which);
NodeTravData::set(someNode, which, preCB, postCB);
}
scary thing to deal with unkown things, but for most of the callbacks i
encountered it worked ok.
dirk.
=======================================================================
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:12 PDT