View Full Version : framebuffer
celic
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?
thanks.
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.
Humus
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
celic
05-08-2002, 09:49 PM
thanks!!!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.