Opengl: how to handle many textures/images?

Sounds to me like you just want to adjust your texture coordinates Texture coordinates are given between 0 and 1 To draw the whole texture onto a quad, you could do something like this: glTexCoord2f(0.0f, 0.0f); glVertex3f(...) glTexCoord2f(1.0f, 0.0f); glVertex3f(...) glTexCoord2f(1.0f, 1.0f); glVertex3f(...) glTexCoord2f(0.0f, 1.0f); glVertex3f(...) But to draw just one quarter of the texture onto the same quad: (Note the different values for glTexCoord) glTexCoord2f(0.0f, 0.0f); glVertex3f(...) glTexCoord2f(0.5f, 0.0f); glVertex3f(...) glTexCoord2f(0.5f, 0.5f); glVertex3f(...) glTexCoord2f(0.0f, 0.5f); glVertex3f(...) Look up OpenGL texturing tutorial on the almighty Google.

Sounds to me like you just want to adjust your texture coordinates. Texture coordinates are given between 0 and 1. To draw the whole texture onto a quad, you could do something like this: glTexCoord2f(0.0f, 0.0f); glVertex3f(...) glTexCoord2f(1.0f, 0.0f); glVertex3f(...) glTexCoord2f(1.0f, 1.0f); glVertex3f(...) glTexCoord2f(0.0f, 1.0f); glVertex3f(...) But to draw just one quarter of the texture onto the same quad: (Note the different values for glTexCoord) glTexCoord2f(0.0f, 0.0f); glVertex3f(...) glTexCoord2f(0.5f, 0.0f); glVertex3f(...) glTexCoord2f(0.5f, 0.5f); glVertex3f(...) glTexCoord2f(0.0f, 0.5f); glVertex3f(...) Look up OpenGL texturing tutorial on the almighty Google.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions