Howdy. I want to get a 0&1 representation of the screen (screen is rendered w/o texturing and lighting) can i do this using GL_BITMAP?
I do the following, but some elements in my array show up as neither 0 or 1…
bool array[sizesize]
glReadPixels(0,0,size,size,GL_RED,GL_BITMAP,array);
for(sizesize)
if(array[i]) print(“1”);
else if(!array[i]) print(“0”);
else print(“x”);
i’m getting a ton of x’s on the screen. shouldn’t GL_BITMAP only give 0’s and 1s? what’s wrong??
~Main