Some of GLUT's original design decisions made it hard for programmers to perform desired tasks. This led many to create non-canon patches and extensions to GLUT.
There are three more notable limitations of GLUT library.
- The library requires programmers to call glutmainloop(); a function which never returns. This makes it hard for programmers to integrate GLUT into a program or library which wishes to have control of its own event loop.
- The fact that glutmainloop() never returns also means that a GLUT program cannot exit the event loop.
- The library terminates the process when the window is closed; for some applications this may not be desired.
Freeglut is an open source alternative to the GLUT library. Freeglut is created to improve the toolkit and hence replacing the GLUT. It only has a few differences about Freeglut and GLUT.
Freeglut fixes the glutmainloop() bug by introducing a new function called glutleavemainloop().
Some other more bugs are also fix in Freeglut, and people now use Freeglut instead of GLUT as it fixes almost all the bugs in GLUT thus Freeglut is now distributed instead of GLUT.
1 comment:
Your blog has not been updated to comment on week 4 and week 5.
You also need to post the link to your work so that it can be downloaded.
Post a Comment