Slava, This is the display word in golden-section after you modified it:
: display ( -- ) GL_PROJECTION glMatrixMode glLoadIdentity -400 400 -400 400 -1 1 glOrtho GL_MODELVIEW glMatrixMode glLoadIdentity [ golden-section ] with-quadric ; This calls gluNewQuadric and gluDeleteQuadric every time the display is called (every time the gadget is redrawn; resizes etc). This is unlike every example of gluNewQuadric I've seen in tutorials or the OpenGL redbook. Typically you create a quadric in some initialization function and then reuse it as much as possible throughout the program. This is how the demo used to be written. This isn't a big deal for a demo like this. But for an application with a gadget that refreshes many times a second, it would be unusual and wasteful to make and delete quadrics many times per second. That the original version didn't work on OS X should be cause to look into if the problem lies with the ui, not to workaround this problem. Ed ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
