title: Orthographic projection in OpenGL
body: <p>I'm trying to set an orthographic projection using gl.glOrthof...</p>
  
  <p>However, it doesn't matter which values I pass into the function, the width and height seems to get constant float values and they don't match my glOrthof attributes.</p>
  
  <p>My surfaceChanged code:</p>
  
  <pre><code>gl.glViewport(0, 0, w, h);
  gl.glMatrixMode(GL10.GL_PROJECTION);
  gl.glLoadIdentity();
  gl.glOrthof(0.0f, 10.0f, 10.0f, 0.0f, 0.0f, 1.0f);
  </code></pre>
  
  <p>My draw code:</p>
  
  <pre><code>gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
  gl.glBindTexture(GL10.GL_TEXTURE_2D, texture);  
  ((GL11Ext) gl).glDrawTexfOES(positionX, positionY, 0.0f, 1.0f, 1.0f);
  </code></pre>
  
  <p>Any ideas? Tell me if you need to know something.</p>