2
glColor4f(1.0,0,0, 1.0);
glReadPixels(touch1Point.x,viewport[3]-touch1Point.y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixelColor[0]);
pixelColor return 255 , 0 , 0
什麼是正確的glReadPixels調用給我回1.0 0 0?
glColor4f(1.0,0,0, 1.0);
glReadPixels(touch1Point.x,viewport[3]-touch1Point.y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixelColor[0]);
pixelColor return 255 , 0 , 0
什麼是正確的glReadPixels調用給我回1.0 0 0?
鴻溝每個組件由255.0f
OK謝謝! – 2010-09-17 12:31:08