I'm using glut/OpenGLin a scientific visualization program.
The code runs on the Sun, SGI, Linux, windows in Cygwin.
It runs on MacOSX but I have one major problem.
The command "glutChangeToMenuEntry" only works on the
top level menu and not on the submenus. (This command is suppossed to
change the text of
a menu item. It does this on the top level menu, but not on the submenus.
Printing out the parameters indicates that the menuID and place is correct.
All code associated with the menu selection is executed correctly
except for the change to the menu text).
The problem also exists in the glut sample code progs/contrib/lineblend.c
which is distributed with glut tar files.
I am using macOSX 10.2 (though the problem exists in 10.3 also).
I am using the MacOSX framework for glut and openGL.
I am running on a duel processor G4 (the problem also
exists on the laptops running macOS 10.3 that we've tried).
Below, I enclose the programs:
1) lineblend.c which is from the original glut distribution of sample
programs under progs/contrib.
This shows that glutChangeToMenuEntry does not work on submenus
in MacOSX. (It works in all other operating systems.)
Included is also the compile line, run in a terminal.
2) decal.c can be obtained from the examples in the MacOSX
distribution /Developer/Examples/OpenGL/Glut
This shows that glutChangeToMenuEntry does work on the first level
menu.
What must be done to make glutChangeToMenuEntry work?
Does a complete glut distribution (tarred and gzipped) exist for macOSX
which will run on 10.2 and 10.3?
Thanks,
ew
---------------------------------
---------begin lineblend.c from glut distribution
progs/contrib/-------------
/* lineblend.c
*
* To compile: cc -o lineblend lineblend.c -lGL -lGLU -lX11 -lglut -lXmu
*
* Usage: lineblend
*
* This is an puffed up version of the first GL assignment we had for my
* graphics class: write a 2-d openGL program w/ color and interactivity.
*
* Left and middle buttons drawn colored lines, right button brings up a
menu
* with a few options. If you draw for long enough and then hit pick
* "redraw" (or resize or uncover the window) it takes so long to redraw
* all the lines it is kind of like a kaleidoscope animation. Or something.
*
* Philip Winston - 2/11/95 (modified: 2/12)
* email@hidden
* http://www.cs.hmc.edu/people/pwinston
*
*/
cc -c -g -Wall -DMACOSX -I/usr/include lineblend.c
cc -o lineblend lineblend.o -framework GLUT -framework OpenGL -lobjc
----------- end compile lineblend.c -----------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden