Re: Sample code for FB to texture memory copy

New Message Reply Date view Thread view Subject view Author view

AnitaKishore (kishore++at++electrogig.com)
Tue, 18 Jun 1996 09:39:07 -0700


On Jun 18, 9:55am, Todd R Pravata wrote:
> Subject: Sample code for FB to texture memory copy
> I know this question comes up alot, but I've never had to
> do this before:
>
> Can someone point me to sample code that loads
> texture memory with the contents of the frame buffer?
>

I do it in the following way:

        1. read framebuffer with lrectread to get an image array.
        2. set this image array to a pftexture type variable.
        3. make sure that this pftexture is properly configured to
           receive the above image array.
        4. call pfLoadTex in the DRAW process to load this pfTexture
           into the texture memory.

Hope this helps.

-anita

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:53:01 PDT

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