title: Best way to scroll a window using pyglet
body: <p>I am working on creating a digraph but it ends up being larger than my window, so rather than constantly making a larger window I want to allow scrolling.  Later I will also allow the user to rotate the graph, as it will be in 3D.</p>
  
  <p>So, how do I scroll around in pyglet?</p>
  
  <p>I found this:</p>
  
  <pre><code>glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glOrtho(ClipBox.x1,ClipBox.x2,ClipBox.y1,ClipBox.y2,ClipBox.z1,ClipBox.z2);
  glMatrixMode(GL_MODELVIEW);
  </code></pre>
  
  <p>But I am not certain if there is a better option.</p>
  
  <p>By looking at <a href="http://www.pyglet.org/doc/programming_guide/mouse_events.html" rel="nofollow">http://www.pyglet.org/doc/programming_guide/mouse_events.html</a> I can see what events I need to use, such as mouse drag and the scroll wheel, I just need to give the user the impression that the view is moving as they expect.</p>