Re: image memory for pfTexture

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose)
Mon, 8 Apr 1996 20:00:32 -0700


+>---- On Apr 8, 5:00pm, Anita Kishore wrote:
> Subject: image memory for pfTexture
->I want to change a texture's image during run time. I do this by using
->pfLoadTexFile(tex, fileName). But I don't know if I need to first free
->the memeory of the previous image, or if this is being done by pfLoadTexFile.
->
->Does anyone know about it?

We only free the texture image data if you have called pfFreeTexImage()
_before_ the texture was formatted for the GL. In this case, the image
pointer gets a pfUnrefDelete() after the texture is formatted and the
GL copy has been created. The texture image pointer will then be changed to NULL.
If this was not done and and a new texture
image is assigned, we simply pfUnref() the old texture image pointer before
replacing it with the new one.

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

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:52:41 PDT

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