glTexCoord2f(1,0);
glVertex3f( 4.8f,-2.5f, 0.0f); // Bottom Right
glTexCoord2f(1,0);
glVertex3f(-1.8f,-2.5f, 0.0f); // Bottom Left
the last two vertices do have the same texcoords..
i guess one of those two should have glTexCoord2f(1,1)
try out
and, if the image is flipped, try to swap those coordinates..
for example swap all first coordinates of glTexCoord3f(a,b) //in this case: a, means 0 to 1, and 1 to 0
try the different ways till you find yours..
thats the way i learned it.. and .. not to feel good, but i think i know some stuff of gl now..
PerPixelLightingat least the texcoords work in this demo

oh, i guess you could try the redbook, you can find it online, link is on nehe's page..
web has enough good info for you, you don't have to pay (except the connection-bills

)
EDIT:i hate those different forum-standards.. no automatical link detection here..
[edited by - davepermen on March 17, 2002 5:02:57 PM]