PDA

View Full Version : popup menu in OpenGL.



itzike
06-09-2003, 04:35 AM
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.

Rommel
06-09-2003, 09:58 PM
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.

Pop N Fresh
06-09-2003, 11:15 PM
The closest I know of for what you're looking for is GLUI. http://www.cs.unc.edu/~rademach/glui/

itzike
06-09-2003, 11:17 PM
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.

itzike
06-09-2003, 11:33 PM
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.

roffe
06-10-2003, 12:46 AM
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?

itzike
06-10-2003, 01:44 AM
Originally posted by roffe:

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?

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.