A question about frame buffer operation

PLEASE HELP ME!

I need to load some data which are stored in a Glubyte array (eg. Glubyte myimage[4][4]) into one of the buffers ( front buffer, back buffer, … whatever … ).

After loading it into a buffer, I want to “and” these bit planes together, count how many ‘1’ there are in the result plane, and read that count out.

I wonder if I can use arbitrary buffer to that. And could anyone write down some code for me? Thank you very much!!!

Originally posted by darron:
[b]PLEASE HELP ME!

I need to load some data which are stored in a Glubyte array (eg. Glubyte myimage[4][4]) into one of the buffers ( front buffer, back buffer, … whatever … ).

After loading it into a buffer, I want to “and” these bit planes together, count how many ‘1’ there are in the result plane, and read that count out.
[/b]

Why? I mean why are you trying to use OpenGL to do this? This sounds like … about ten lines of plain C to me.


And could anyone write down some code for me? Thank you very much!!!

Oooh dear, sorry but “please write my code for me” is the sort of request generally gets people annoyed round here!

[This message has been edited by nutball (edited 01-13-2003).]

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.