title: LWJGL glTranslate doing weird things
body: <p>this is a big problem I have been running into.</p>
  
  <p>I am trying to render multiple tiles using glTranslate but when I call my draw function with the x, y coordinates the tiles are spaced weirdly(I don't want spaces).</p>
  
  <p>Here is what happens.</p>
  
  <p><img src="https://i.stack.imgur.com/gE398.png" alt="Drawing multiple tiles but having problems"></p>
  
  <p>here is my code:</p>
  
  <p>Draw:</p>
  
  <pre><code>public void draw(float Xa, float Ya) {
  
      GL11.glTranslatef(Xa, Ya, 0);
  
  
      if(hasTexture) {
      Texture.bind();
  
      GL11.glBegin(GL11.GL_QUADS);
          GL11.glColor3f(0.5f, 0.5f, 1);
          GL11.glTexCoord2f(0, 0);
          GL11.glVertex2f(0, 0);
          GL11.glTexCoord2f(0, 1);
          GL11.glVertex2f(0, S);
          GL11.glTexCoord2f(1, 1);
          GL11.glVertex2f(S, S);
          GL11.glTexCoord2f(1, 0);
          GL11.glVertex2f(S, 0);
  
          GL11.glEnd();
      }
  </code></pre>
  
  <p>and my render code:</p>
  
  <pre><code>public void a() throws IOException {
      GL11.glTranslatef(0, 0, -10);
      int x = 0;
      while (x &lt; World.BLOCKS_WIDTH - 1) {
          int y = 0;
          while (y &lt; World.BLOCKS_HEIGHT - 1) {
              blocks.b[data.blocks[x][y]].draw(x, y);
              y++;
          }
          x++;
  }
  </code></pre>
  
  <p>there are no errors (except the visible ones)</p>