title: How to pan a 2D openGL ES scene
body: <p>Im trying to move an image around drawn with OGLES using glTranslatef in iOS. I know i can get the amount panned using a UIPanGestureRecognizer, but am unsure how to apply the deltas to the x and y variables. Any ideas how to accomplish this or know of a better way to pan around an image in openGL ES 1.1?</p>
  
  <p>How im setting up my view:</p>
  
  <pre><code>    CGRect rect = view.bounds;
  glViewport(0, 0,rect.size.width,rect.size.height);
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity(); 
  glOrthof( 0,rect.size.width,-rect.size.height, 0, -1, 1 ) ;  
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();    
  </code></pre>