I'm working on a Pico Lisp application that uses OpenGL, and I thought it would be nice to make use of an OpenGL popup menu. I made some additions in the files glut.c and lib.l that can be found here <http://folk.uio.no/jkleiser/pico/gl/>, and I also wrote a simple menu-test.l to check if it worked. To my surprise it did, except for the refreshing of the window. When you start menu-test.l, the text "Right-click to activate menu" is shown. When you select an item from the menu, that text should have been replaced with the item number (1 or 2), but that doesn't happen, unless you force a refresh, e.g. by resizing the window. Can anybody see what I've done wrong in this menu-test.l?

When I do the (cd simul/gl; make) to compile the OpenGL stuff, I get a couple of these: "warning: control reaches end of non-void function". I'm a rather lousy C programmer, and I have no idea what I've done wrong. I'd be glad if anybody could take a look at glut.c and give me some feedback.

/Jon

Reply via email to