popup menu in OpenGL.

Hi.

I’m looking for an open source implementation of popup menu in OpenGL.
This implementation should behave and looks exactly as the popup menu of the system.
Mac OSX and Windows 2000 and XP and should be cross platform implementation.

If you have something close enough to the above I’ll appreciate it a lot.

Thanks.

I doubt any such code exists – normally, you use your own custom interface in OpenGL code. If you really want to use standard OS UI elements, try using ordinary OS calls to draw the menu to an offscreen buffer (this will be different depending on which system you’re using), then copying it to an OpenGL texture. Alternatively, just use ordinary OS calls, and draw the menu on top of your OpenGL window.

The closest I know of for what you’re looking for is GLUI. http://www.cs.unc.edu/~rademach/glui/

Originally posted by Pop N Fresh:
The closest I know of for what you’re looking for is GLUI. http://www.cs.unc.edu/~rademach/glui/

Thanks, I’ll check it out.

Originally posted by Pop N Fresh:
The closest I know of for what you’re looking for is GLUI. http://www.cs.unc.edu/~rademach/glui/

Well, it’s uses an ordinary GLUT functions and use a unique GUI that doesn’t looks like the system menu at all.
I’m looking for code imitating the system’s menu look and behavior. (Without GLUT is better).
Thanks anyway, it was the best answer so far.

Originally posted by itzike:

I’m looking for an open source implementation of popup menu in OpenGL.

Last time I checked ogl was a graphics library, not a gui library. There are many open-source cross platform gui libs out there, glut can be considered one. Others come to mind: tcl/tk,Qt,java(with gl4java). Why not use one of them?

Originally posted by roffe:
[b] [quote]Originally posted by itzike:

I’m looking for an open source implementation of popup menu in OpenGL.

Last time I checked ogl was a graphics library, not a gui library. There are many open-source cross platform gui libs out there, glut can be considered one. Others come to mind: tcl/tk,Qt,java(with gl4java). Why not use one of them?[/b][/QUOTE]

I agree with you, but I thought that maybe, just maybe someone implement what I need so I won’t have to load and link or compile a complete library for that.

Thanks anyway.