OpenGL Utility Toolkit - Limitations

Limitations

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. Some free software or open source reimplementations also include fixes.

Some of the more notable limitations of the original GLUT library include:

  • 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. A common patch to fix this is to introduce a new function, called glutCheckLoop (Mac OS X) or glutMainLoopEvent (freeglut/OpenGLUT), which runs only a single iteration of the GLUT event loop. Another common workaround is to run GLUT's event loop in a separate thread, although this may vary by operating system, and also may introduce synchronization issues or other problems: for example, the Mac OS X GLUT implementation requires that glutMainLoop be run in the main thread.
  • The fact that glutMainLoop never returns also means that a GLUT program cannot exit the event loop. freeglut fixes this by introducing a new function, glutLeaveMainLoop.
  • The library terminates the process when the window is closed; for some applications this may not be desired. Thus, many implementations include an extra callback, such as glutWMCloseFunc.

Since it is no longer maintained (essentially replaced by the open source freeglut) the above design issues are still not resolved in the original GLUT.

Read more about this topic:  OpenGL Utility Toolkit

Other articles related to "limitations":

Preferential Bidding System - Constraints
... CBA) - ALPA, AFA, IBT Airline Policies - FRMP, Fairness These include Flight Time Limitations (FTL) - Daily, Weekly, Monthly, Quarterly and Yearly Flight Duty Period Limitations (FDP) - Daily, Weekly ... Overlapping activities, Separation of assignments, base allocation of crew members, Reserve limitations, Crew Training Requirements ...
Metal Gear Solid 4: Guns Of The Patriots/Archive 1 - Reception - Konami Review Limitations
... Several publications have commented on limitations given to pre-release reviewers by Konami, including discussion on the length of cutscenes and size of the PS3 installation ... These limitations resulted in Electronic Gaming Monthly delaying its review ... have withheld review code because of non-compliance with the limitations ...
Super Mario's Wacky Worlds - Overview - Limitations
... Due to the limitations of the CD-i, several features could not be included in the game, such as large numbers of sprites on the screen, Mode 7 and many visual effects ...
Section 91(27) Of The Constitution Act, 1867 - Scope of The Federal Power - Limitations
... asserted that limitations on rights must be motivated by an objective of sufficient importance ...

Famous quotes containing the word limitations:

    The only rules comedy can tolerate are those of taste, and the only limitations those of libel.
    James Thurber (1894–1961)

    Much of what contrives to create critical moments in parenting stems from a fundamental misunderstanding as to what the child is capable of at any given age. If a parent misjudges a child’s limitations as well as his own abilities, the potential exists for unreasonable expectations, frustration, disappointment and an unrealistic belief that what the child really needs is to be punished.
    Lawrence Balter (20th century)

    Growing up means letting go of the dearest megalomaniacal dreams of our childhood. Growing up means knowing they can’t be fulfilled. Growing up means gaining the wisdom and skills to get what we want within the limitations imposed by reality—a reality which consists of diminished powers, restricted freedoms and, with the people we love, imperfect connections.
    Judith Viorst (20th century)