Texture reference count

New Message Reply Date view Thread view Subject view Author view

Antonio Seoane (ynot++at++mail2.udc.es)
Fri, 17 Dec 1999 11:47:17 +0100


 Hi Performers!

  I'm getting unknown (at least by me :-) ) references to the textures
of the .pfb models I load using pfdLoadFile(). I'm trying a model with
only one texture. When I call

        ...
        model=pfdLoadFile("model.pfb");
        ...

  the reference count of the texture, used by model.pfb is 3 (as shown
by pfGetRef()).
If I disable sharing before with

        ...
        pfdConverterMode(".pfb",PFPFB_SHARE_GS_OBJECTS,PF_OFF);
        model=pfdLoadFile("model.pfb");
        ...

  then the reference count is 1, which seems to be right.

  Where are the three references from? I suppose the first is the
obvious one, from the
pfGeoState of the model. The second one must be from the shared
structures, as texture is
shared by default. Am I right? Where is the third reference from?

  Thanks in advance,

     Antonio Seoane Grupo VideaLAB
    ynot++at++mail2.udc.es Universidad de A Coruņa
                          http://www.udc.es/videa

 
 Hi Performers!

  I'm getting unknown (at least by me :-)  ) references to the textures of the .pfb models I load using pfdLoadFile(). I'm trying a model with only one texture. When I call

        ...
        model=pfdLoadFile("model.pfb");
        ...

  the reference count of the texture,  used by model.pfb is 3 (as shown by pfGetRef()).
If I disable sharing before with

        ...
        pfdConverterMode(".pfb",PFPFB_SHARE_GS_OBJECTS,PF_OFF);
        model=pfdLoadFile("model.pfb");
        ...

  then the reference count is 1, which seems to be right.

  Where are the three references from? I suppose the first is the obvious one, from the
pfGeoState of the model. The second one must be from the shared structures, as texture is
shared by default. Am I right? Where is the third reference from?

  Thanks in advance,
 

Antonio Seoane
ynot++at++mail2.udc.es

 
Grupo VideaLAB
Universidad de A Coruña
http://www.udc.es/videa

 


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Dec 17 1999 - 02:48:04 PST

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