HI, Kal Mar ,mobeen
I need your help, I am doing the work just as your guys did. my code is almost the same as yours. I just couldn’t get the result like your guys show .
I stored the log-scale histogram into a 2D texture and then display that texture.the result is show in the follow picture.
glTexImage2D(GL_TEXTURE_2D, 0 , GL_RGBA8, 256, 221, 0, GL_RGBA, GL_UNSIGNED_BYTE, histogram);
glBegin(GL_QUADS);
glTexCoord2f(1, 1); glVertex2f(0, 0);
glTexCoord2f(0, 1); glVertex2f(1.0, 0);
glTexCoord2f(0, 0); glVertex2f(1.0, 1.0);
glTexCoord2f(1, 0); glVertex2f(0, 1.0);
glEnd();
thinks
Bin