Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB
My Carrier: Virgin Mobile

Check individual pixels

[ Edited ]


I was wondering if it would be possible to check individual pixels on an EGLsurface (using opengles1.1) for a certain colour. This would done before swapping back and fron buffers of the surface.





edit: Possible use eglcopybuffer to a pixmap maybe??
could i use glreadpixels? (along with glreadbuffer but then it would need to be read BEFORE swapping buffers) 

Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Check individual pixels

Hmm I've never tried this myself - could be best to query an OpenGL-specific forum for something like this; It may be expensive to do at each frame but I don't see why is would not be possible;