Original Post
Hi
I am new to opengl and have read some of the NeHe tutorials. I started making a small 3d demo using different textures and I noticed that the tuxture was always strecthed to fit the polygon it was put on. Say i had a bitmap that looked like a brick and wanted the brick to go on one side of the wall but not strecth - just repeat, making it look like a brick wall. How would I do this, has it got somethiingm to do with these 2 lines?:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
Thanks.