[HOpenGL] mainloop & return

Sven Panne Sven_Panne@BetaResearch.de
Thu, 13 Dec 2001 11:02:39 +0100


Andre W B Furtado wrote:
> Is there any problem if the same function that calls "mainloop" returns
> a value? [...]

Well, it depends on your definition of "problem". :-) GLUT.mainLoop never
returns! This is a slightly annoying part of GLUT and there are ways around
it, but only if you hack GLUT:

   http://www.google.com/search?q=cache:vRkp-yfjq5Q:web2.iadfw.net/sjbaker1/software/glut_hack.html+glutMainLoop&hl=en

(Has anybody a "real" and actual URL of this?)

Cheers,
   S.