title: Easy way to display a continuously updating image in C/Linux
body: <p>I'm a scientist who is quite comfortable with C for numerical computation, but I need some help with displaying the results.  I want to be able to display a continuously updated bitmap in a window, which is calculated from realtime data.  I'd like to be able to update the image quite quickly (e.g. faster than 1 frame/second, preferably 100 fps). For example:</p>
  
  <pre><code>char image_buffer[width*height*3];//rgb data
  initializewindow();
  
  for (t=0;t&lt;t_end;t++)
  {
     getdata(data);//get some realtime data
     docalcs(image_buffer, data);//process the data into an image
     drawimage(image_buffer);//draw the image
  }
  </code></pre>
  
  <p>What's the easiest way to do this on linux (Ubuntu)? What should I use for initializewindow() and drawimage()?</p>