title: Why is my texture streching even on using GL_REPEAT?
body: <p><img src="https://i.stack.imgur.com/IsqMK.png" alt="enter image description here">This is my output :![enter image description here][2]</p>
  
  <p>The image is stretched when my walls are long and squeezed when they are small.</p>
  
  <p>My code for loading texture, loadTGATexture method is from the superBible.</p>
  
  <pre><code>glGenTextures(1,&amp;texture);  
  glBindTexture(GL_TEXTURE_2D,texture);   
  LoadTGATexture(textureFile, GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR, GL_REPEAT);
  </code></pre>
  
  <p>The code snippet where I am giving the texture coordinates are :
  (j is index of a wall of the building)</p>
  
  <pre><code>    buildingArray[j][0] = n2.x;
      buildingArray[j][3] = 0;
      buildingArray[j][4] = n2.y;
  
      texBlgArray[j][0] = repeat_after_length;
      texBlgArray[j][5] = 0;
  
      normals[j][0] = normal.x;
      normals[j][6] = normal.y;
      normals[j][7] = normal.z;
  
      j++;
  </code></pre>
  
  <p>I set repeat after length to 1.</p>
  
  <p>I think that as texture GL_REPEAT happens if length is > 1, I should set that to some value greater than one, but if I do so, the windows in texture become very small and large no. of windows are visible. I want to tile the texture, I dont want any change in dimensions of my orignal texture image :<img src="https://i.stack.imgur.com/4iXWj.png" alt="enter image description here"></p>
  
  <p>What am I doing wrong ?</p>