title: Saving glut draw as PNG/BMP/JPG
body: <p>I'm creating a simple graphic editor by C/glut. So I just wonder how can I save my draws as PNG, BMP etc. I tried png.h but didn't work for me. I didn't get any errors but it did not save anything.</p>
  
  <p>Any advice?</p>