From: Jason Coposky (jasonc++at++elumens.com)
Date: 03/15/2001 09:56:59
quick question,
i have modified the pbuffer.c example to use a glCopyTexSubImage2D
in the hope of using a texture drawn to a pbuffer. at first i just
replaced the glCopyPixels in the DrawCopy callback with a
glCopyTexSubImage2D, after calling pfApplyTex on a pfTexture, which
worked fine, except that the copy is from the "draw" drawable, not
the
"read/pbuffer" drawable. ive tried everything short of using
straight
opengl textures and trying to sneak around performer, which i feel
would
be a Bad Thing(tm), to get this to work. this is prob. my 10th
attempt,
but the most straight forward. so much for the quick fix. :)
the question is: what sort of magic is necessary to read a texture
from
a window which does not use the scene that texture is bound to? ie.
a pbuffer window.
thanks
~J
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jason M. Coposky, 3D Software Engineer
jasonc++at++elumens.com
// =-=-=-=-=-=-=-=-=-=
This archive was generated by hypermail 2b29 : Thu Mar 15 2001 - 10:02:21 PST