title: OpenGL ES why is my texture turned 180 degrees?
body: <p>i am drawing a texture on a simple plane. The renderingcode is basically this:</p>
  
  <pre><code>gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
  gl.glVertexPointer(3, GL10.GL_FLOAT, 0, _vertexBuffer);
  
  gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
  gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, _textureBuffer);
  
  gl.glDrawArrays(GL10.GL_TRIANGLES, 0, _vertexBuffer.capacity()/3);
  </code></pre>
  
  <p>With _vertextBuffer as</p>
  
  <pre><code>new float[] {
      0, 0, 0,
      0, height, 0,
      width, height, 0,
      width, height, 0,
      width, 0, 0,
      0, 0, 0
  };
  </code></pre>
  
  <p>where width and height are positiv values. _textureBuffer is</p>
  
  <pre><code>new float[] {
      0, 0,
      0, 1,
      1, 1,
      1, 1,
      1, 0, 
      0, 0
  }
  </code></pre>
  
  <p>With this the texture is turned around and mirrored or turned around 180 degrees. what am I doing wrong?</p>