Well it goes like this
gl.glClearColor(0,0,0,0);
gl.glClear(GL.GL_COLOR_BUFFER_BIT );
gl.glReadPixels(0,0,this.getWidth(),this.getHeight(),GL.GL_RGBA,GL.GL_UNSIGNED_INT_8_8_8_8,screenBuffer);
and all the alpha values in screenBuffer are 255… WHY???
or I try this instead of clearing:
for(int a=0;a<compositeScreen.length;a++){
screen[a]=0; //screenBuffer wraps screen
}
gl.glDrawPixels(this.getWidth(),this.getHeight(),GL.GL_RGBA,GL.GL_UNSIGNED_INT_8_8_8_8,screenBuffer);
gl.glReadPixels(0,0,this.getWidth(),this.getHeight(),GL.GL_RGBA,GL.GL_UNSIGNED_INT_8_8_8_8,screenBuffer);
and the alphas are still 255… ARGGGGGGGG!!!
Is that what I am supposed to get?
Please tell me that my new expensive Nvidia GeForce 7800 GS with the latest drivers is all right and that I am just missing the gl.glReadTheActualFreakingAlphas(true) function.