Re: [info-performer] pftexture deletion

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 04/19/2002 13:45:16


Hello Dimi !

I think you can find the answer in the info-performer archives.
Take a look at:

 http://oss.sgi.com/projects/performer/mail/info-performer/perf-01-12/0050.html
 http://oss.sgi.com/projects/performer/mail/info-performer/perf-01-12/0056.html
 http://oss.sgi.com/projects/performer/mail/info-performer/perf-01-12/0063.html

-yair

>
> Hi,
> I am trying to change the texture in an object that has been loaded
> previously
> with pfdLoadFile. For that I create a new pfTexture, load the texture in
> and replace
> the existing attributes of the pfGeoStates. Before replacing I recove
> rthe prevous pfTexture objects
> (if ther are any) and try to pfDelete them.
> Unfortunately pfDelete always returns FALSE (ie the objects wont get
> deleted). To check
> why this happens I looked at the reference count of each pfTexture and
> it was 3.
> So its logical that the pfDelete did not take place, but I dont
> understand why since I just load up a model.
> Is there a way to delete these objects cleanly without pfFree.
>
>
> Thanks
>
>
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Apr 19 2002 - 13:45:36 PDT

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