title: Consistent Freehand line in OpenGL
body: <p>I know how to draw freehand in opengl, but I'd like it to not have gaps if you move the mouse too fast. This is what I have:</p>
  
  <pre><code>void myMovedMouse(int mouseX, int mouseY)
  {
      int x = mouseX;
      int y = IMAGE_Y - mouseY - 1;
      //int brushSize = 20;
      //glRecti(x, y, x + brushSize, y + brushSize);
      drawDot(x, y);
      glFlush();
  }
  
  //in main
  glutDisplayFunc(myDisplay);
  glutMotionFunc(myMovedMouse);
  </code></pre>
  
  <p>I also tried to use <code>GL_LINE_LOOP</code>, but of course that didn't work.</p>