View Full Version : framebuffer
05-08-2002, 04:19 AM
I have to get the color of a pixel from a texture without displaying it.
how can I do this?
Assuming you use double buffering, you can render it to the back buffer and read it from there. In double buffered mode, only the front buffer is displayed, so you won't see the pixel.
05-08-2002, 09:38 AM
Another solution is to just keep a copy of the texture in system memory.
also glGetTexImage(..) may not be the fastest method though
05-08-2002, 09:49 PM
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.