Re: pfDeleteFunc(3pf)

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Mon, 21 Sep 1998 12:43:44 -0700


On Sep 17, 2:54pm, Max Waterman wrote:
>I am trying to make my application delete the gl texture handles when it
>deletes a node.
>
>To do this, I want a function of my own to be called when a node is
>pfDelete()d. As I understand it, if you call pfDelete() on a pfNode, then all
>the nodes under the pfNode, will also get pfDelete()d (is this right?).

This is correct. Also each pfNode will delete pfObjects that it owns. This
includes pfUserData and for pfGeode ... its pfGeoSets. This does _not_ include
node traversal data.

>But I can't get my pfDeleteFunc() to be called at all. Looking at the code, it
>looks like the function registered with pfDeleteFunc() only gets called if a
>node has user data.

Correct. More precisely ... the function handles pfObject::userData

>Does this mean I have to make dummy user data for all the nodes that I want
>deleted?

I'm a little unclear why you equate pfNode deletion with calls to
pfObject::deleteGLHandle(). pfObject::deleteGLHandle() only works on pfTexture
objects and these are bound to pfGeoStates, not pfNodes.

Regards.

--
+ Marcus Barnes, Technical Staff        mailto:marcus++at++multigen.com +
+ Multigen Inc.                         http://www.multigen.com    +
+ 550 S. Winchester Blvd.               phoneto:1-408-367-2654     +
+ Suite 500 San Jose CA 95128           faxto:1-408-261-4103       +

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Sep 21 1998 - 12:41:15 PDT

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