Jan Barglowski (jan++at++euryale.chinalake.navy.mil)
Wed, 16 Apr 1997 07:57:50 -0700 (PDT)
Here's what I've done:
myClass *myClassPtr;
myClassPtr = (myClass *) pfMalloc(sizeof(myClass), pfGetSharedArena());
This instances the class in the shared arena. But now that I've reread your
question... I know that some Performer classes, such as pfChannel, are
only instanced in the shared arena, but other classes (forget which) use
a syntax like:
myClass *myClassPtr = new(pfGetSharedArena()) myClass;
Now if I could only remember which Performer classes are like that! I'll
take a stab at thinking (!) that the "new" operator is overloaded in that
class. Anyone else?
jan
--
Jan Anthony Barglowski jan++at++chinalake.navy.mil
Real-time Computer Graphics http://www1.ridgecrest.ca.us/~jan
Naval Air Warfare Center, China Lake (619) 927-1057
=======================================================================
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:04 PDT