PDA

View Full Version : Does GL_PACK_SKIP_ROWS and GL_PACK_SKIP_PIXELS do anything?



ToolChest
04-15-2002, 11:48 PM
I'm trying to use them with glCopyTexImage2D to copy for my 800x600 frame buffer to a 256x256 texture. I was under the impression that pack and unpack worked for reading and writing to the frame buffer or is this just a bad way to copy the frame buffer. I'm trying to avoid rendering the scene twice, because my biggest bottleneck is the volume of vertex data being sent to the video card.

Thanks...

John.

zed
04-16-2002, 01:48 AM
r u trying to copy the whole framebuffer in one hit from 800x600 ->256x256?

if so then its not possible

if youre wanting just 256x256 of the framebuffer to go into the texture then glCopyTexSubImage2D is what u want ie skiprows etc aint necessary

ToolChest
04-16-2002, 01:56 AM
Zed,

yes I was hoping to copy 800x600 to 256x256. I was hoping that it would work like glDrawPixels and unpack.

John.