Ok,
The last part is becoming clear to me as well:
"
format
Specifies the format of the pixel data. The following symbolic values are
accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB,
GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
type
Specifies the data type of the pixel data. The following symbolic values are
accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT,
GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2,
GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5,
GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4,
GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1,
GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8,
GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and
GL_UNSIGNED_INT_2_10_10_10_REV.
"
A simple example would have made this immediatly clear to me... or some
concept code... I already suspected it was working like this but now I am
pretty sure:
I'll try to explain in my own words:
The (pixel) format specifies what color components follow and in what order.
The (pixel) type specifies what the type is of each color component.
Maybe "color component" is a better term to use for the future ?!
But then again it's a bit more lengthy isn't it ?!
Anyway here is a conceptual example of the situation:
mPixel :TPixelFormat : TPixelType;
or better put:
mPixel : begin
mRed : float;
mGreen : float;
mBlue : float;
mAlpha : float;
end;
The floats are the pixel type
and the pixel structure itself is the format.
At least that's what I know believe ?!
So sometimes explaining by example is an easier way to explain things !
Bye,
Skybuck.