Is it possible to build a single application that can launched in two modes: interactive and batch? In interactive mode, rendering is done on-screen and in batch mode rendering is done off-screen. I modified the osmesa example to enable me to pass a command line switch to select interactive or batch. It worked great. A complication is that when I run in inerative mode, I want to use the system OpenGL dynamic library and when I run in batch mode I want to use the Mesa OpenGL library. I can alter the library load path when I invoke the application to ensure I get the correct OpenGL library. When I tried this on Windows, I get errors about missing procedure points in OPENGL32.DLL when I use the system OpenGL library. If I don't make the calls to osmesa (e.g. OSMesaCreateContextExt), I can use either the system or the Mesa OPENGL32.DLL library when I launch the application without a problem.
 
Thanks for any insight...
 
Geoff