When I load a bmp image and use it as texture for with GL_QUADS,its ok.But,after glEnd() if I start another GL_QUADS and use the same texture,the texture is mapped to the 2nd quad as distorted.After trying much,I added below parameter lines (which I added before 1st quad,too) before the 2nd quad and it worked well.
What I want to ask is,should we call these parameter setting functions for each and every primitive,even if we use the same texture for all of them?
[Sorry for posting this question in beginner c++ forum,but since I guess there are people who work with opengl I preferred to post here rather then to an opengl specific forum.]
The above lines affect the texture, not the primitives. So if you do it once, it will have effect on all primitives rendered with that texture. There's no need to call it for every primitive you draw.
I expected what you're saying ,since Opengl is defined as a state machine.But,I had such a problem as I described in my 1st post.Anyway,Im using those parameters before every "texturing."
Thanks..