[Plib-users] Are the site docs up-to-date?
Brought to you by:
sjbaker
From: <coz...@gm...> - 2006-01-12 04:34:14
|
I was recently checking supertuxkart's source, and there is a part of the code that says: transform =3D new ssgTransform () ; transform -> ref () ; transform -> addKid ( shadow ) ; transform -> addKid ( model ) ; now, acording to the documentation at <http://http://plib.sourceforge.net/ssg/ssgBase.html> http://plib.sourceforge.net/ssg/ssgBase.html , each time addKid() is called= , the reference count should go up by one. However the output of getRef() onl= y changes after ref() is called, and stays the same when addKid() is called. Are the docs out of date in this? must the reference count be increased manually always? if so, does ssgDeRefDelete() decreases the reference count just by one like it says in the docs, or does it deletes the node no matter how many references it has? -Coz |