Re: pfLoadTexture vs pfTexImage

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Wed, 03 Aug 94 00:26:13 -0700


There aren't many things that could cause texture paging. Either
you are somehow creating multiple pfTextures for the same file or
the internal format is indeed different. My guess is that some
other part of the loader code is doing a pfGetTexName to decide
whether it should load the texture file. ** == change.

** if (alpha)
           pfTexFormat(pfTex,PFTEX_INTERNAL_FORMAT,PFTEX_RGBA_4);
** else
           pfTexFormat(pfTex,PFTEX_INTERNAL_FORMAT,PFTEX_RGB_5);

           output = decodeTexture(path);
            
           /* create the texture... I initially had 1 for the nr
           parameter value but I thought that maybe that gave it a depth
           of 2 (ie 0 & 1) so I now set it to zero but it makes no
           difference to the problem */

           pfTexImage(tex,output,nComponents,nWidth,nHeight,0)

** pfTexName(tex, path);

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:26 PDT

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