pfDeleteFunc(3pf)

New Message Reply Date view Thread view Subject view Author view

Max Waterman (maxw++at++sgi.com)
Thu, 17 Sep 1998 14:54:31 -0700


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?). I am hoping that my
delete function will get called on all the nodes to be deleted. My function will
do a pfGetGLHandle() on the node, and record all the GL handles that are no
longer used. I will add code to the draw call back to call glDeleteTextures() on
the list.

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. Does this mean I have to make dummy user data for all the
nodes that I want deleted?

Or is there some better way of achieving the same goal?

Max.

-- 
Max Waterman. mailto:maxw++at++sgi.com  "Get off me cheese! Get off! Get off!
PSE-GPS                             Grommit, Grommit! Go for him! Off!"

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Sep 17 1998 - 14:53:14 PDT

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