I seem to be rather dislexic or something these days. Either that, or books aren’t telling me the right thing.
I’m trying to go about texturing a quad, and the way TexCoord2f is layed out, everything should be as such:
(0.0, 0.0) UpperLeft corner of the bitmap
(1.0, 0.0) UpperRight corner of the bitmap
(0.0, 1.0) LowerLeft corner of the bitmap
(1.0, 1.0) LowerRight corner of the bitmap
Is this correct?
If so, then why is it that whenever I draw the quad with the texture on it, the texture seems to be rotated 90 degrees clockwise?
And no… I am not rotating the quad or the scene prior.
Also, the bitmap is generated, so its definitely top-down in memory, not read in as bottom-up. Byte 0 (or 1) is the top-left-most pixel. Byte cx*cy is the bottom-right-most pixel.
Am I going insane here?