offscreen/don't draw

-Currently, I have a program that when ran it draws the image, and copies the image to a ppm file. How do I change the program such that a window does not pop up, will draw (but I won’t see the image), and will just automatically save a ppm image?

Hmmm, that depends on what you are using, is it on Windows ?, are you using MFC in that case or is it raw Win32 code, Delphi or something else… ?

You need to be a bit more specific…

Mikael

Originally posted by bg:
-Currently, I have a program that when ran it draws the image, and copies the image to a ppm file. How do I change the program such that a window does not pop up, will draw (but I won’t see the image), and will just automatically save a ppm image?

make your window, do your GL stuff, then exit. don’t actually draw the window. as is mentioned above, it depends what os/api you are using for windowing