Original Post
I don't understand what does this function.For example we have: GLfloat Map[256]; Map[0]=1; Map[1]=0.234; Map[2]=0.4; //etc glPixelTransferi(GL_MAP_COLOR,TRUE); //we enable MAP_COLOR glPixelMapfv(GL_PIXEL_MAP_R_TO_R,255,invertMap); glDrawPixels(64, 64, GL_RGB,GL_UNSIGNED_BYTE,Image); //we draw an image(doesn't matter the content of the Image) What does glPixelMap?It converts the first pixel red value to 1,the second to 0.234,the third 0.4,and so on?