The SGL is simple by design. Its simplicity limits its capability. Unlike most other graphics environments,
Only one popup menu is available at a time.
The current window that has focus is the only object capable of receiving mouse and keyboard events. Compare this to a graphical system like Java where an event can have multiple listeners. The application can, of course, set up its own event queue and handling mechanisms.
Unlike GLUT, SGL programs ignore any arguments passed to
main
.
If these limitations are too severe, you may want to consider another C++ graphical library. While the SGL is not targeted at the serious C++ graphics developer, all of the capabilities of GLUT and OpenGL are available if necessary.
Copyright ©2019 Richard L. Halterman | Version 0.9.5 | February 17, 2019 |