Re: Storing pfObject to file

New Message Reply Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 01/25/2001 10:47:26


On Jan 25, 5:47pm, Peter Oslej wrote:
> Is it possible to store the pfList of pfTextures to pfbFile ?
> I am writing utility for converting tiles of terrains
> to pfb format for dynamic loading , and I am looking for the way
> how to save info ( or whole texture) about all textures in terrain to be
> preloaded
> on init phase into main memory and RMs.

Yes, here's the mode you'll want to take a look at for storing them
(from 'man pfb'), then pfuDownloadTexList to pre-load.

   [...]
   pfdConverterMode_pfb, pfdGetConverterMode_pfb,
   pfdConverterAttr_pfb, pfdGetConverterAttr_pfb, pfdConverterVal_pfb
   and pfdGetConverterVal_pfb allow the user to access and alter the
   modes, attributes and values of the pfb loader/storer. The pfb
   converter modes are:
   [...]
       PFPFB_SAVE_TEXTURE_IMAGE
            By default texture images are not saved in pfb files if the
            name of the file names an image file. Setting this mode to
            PF_ON forces the texture image to be saved.

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Silicon Graphics                           http://reality.sgi.com/allan


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jan 25 2001 - 10:50:20 PST

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