TGA Textures

Hi All,

I’ve little OpenGL problems!

I am building an OpenGL application in Delphi using TGA textures files(480x480). I use my BuildList function to create pieces of this big texture. Every thing works fine! But the problem is: “when i’ve loaded the textures and paint them on screen, (1.) there are some (ugly) lines around my texture (2.) and my texture is smooth (I DONT LIKE THAT)” :confused:

see my screenshot here :
http://www.kiwifreak.com/help.gif

Load Texture with:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);

Draw the tile with:
glBegin(GL_POLYGON);
glTexCoord2f […]
glVertex2f […]
glEnd;

Can you help me to disable this smooth textures and these (ugly) soft lines??

Thanks for your veryvery much for any help!

Do this:

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);