Hello Jie Liu, Jie Liu wrote: > And I added something in the source code (12Clusterserver.cpp, main() > function), to see the 'argv' list, but I found after glutInit was invoked, > the '-geometry 300x300+200+100' part was gone, it was removed away from the > argv list.
yes, that is intended, glut is a helper library for simple OpenGL programs. It takes care of creating a window and OpenGL context across platforms, so we use it for almost all examples in OpenSG. And since glut takes care of creating the window (in the sense that it talks to the windowing system you use (e.g. X11)) it evaluates and consumes the parameters for it. > So where can I see the definition of OpenSG's glutInit? I want to learn some > details. it is not part of OpenSG, but a separate library - actually there are multiple implementations, see <http://freeglut.sourceforge.net/> for a popular one. Cheers, Carsten ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
