   GLUT and GetOpenFileName
  Good evening everyone,I would like to ask you for advice. I am using GLUT window and GetOpenFileName to show dialog for opening file, but if the dialog is displayed the GLUT window is not being repainted.Thanks for any adviceAshe   
  As with all Windows Common Dialog's, it is a blocking operation since it has to wait for a response before moving onto the next line of code. Therefore, you will not be swapping buffers (and hence, repainting the screen) whilst a Dialog is open.The way around this is to have your rendering done in a separate thread.   ;  Thanks, I supposed it. Is there some easy way how to redisplay in another thread while using GLUT.Thanks.Ashe   ;  It might be easier to leave your OpenGL rendering in the main thread, and put the open file dialog in another thread.I'm not even sure if that's possible with GLUT, because of its mainloop and callbacks mechanism that kinda takes over your program structure.It's definitely possible with something like GLFW, however. It even provides threading support.   ;  Thanks a lot.I will have a look at GLFW.Ashe   