Re: framebuffer -> texture

New Message Reply Date view Thread view Subject view Author view

Shankar N Swamy (shankar.n.swamy++at++boeing.com)
Wed, 16 Jun 1999 12:53:09 -0700


Ken Lindsay wrote:
>
> hi,
>
> is there a technique for using rendered framebuffer images as textures
> on other objects without copying back the data to main memory? i have
> RE2/MCO graphics with 4 RM boards. if RE2 can't do this, can IR/IR2?
>

pfTexture::subload( PFTEX_SOURCE_FRAMEBUFFER,
                    NULL /* for framebuffer */,
                    /* origin of the screen rectangle: */
                    int(sx0), int(sy0),
                    0 /* "srcwid" - 0 for framebuffer */,
                    0, 0 /* subload from the bottom left of the texture */,
                    int(xmax-xmin), int(ymax-ymin) )

The safest place to call this is probably the draw function callback.

Also look at the OpenGL call glCopyTexSubImage2D(...), if that's what
you need.

--------------------------------------------------------------------------
shankar.n.swamy++at++boeing.com Shankar N. Swamy
                              Computer Graphics & VR Research
PHONE: (425) 865-4286 Mathematics & Computing Technology
FAX : (425) 865-2965 Phantom Works, Boeing
                              PO Box 3707 MS 7L-48, Seattle, WA 98124-2207
---------------------------------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Jun 16 1999 - 12:53:15 PDT

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