right click drop menu help..PLZ

Started by
3 comments, last by zahadam 19 years, 6 months ago
well...PLZ help me out. I need a code strip. Because I just started programming with OpenGL and I suck. Well here it is. I want to have and object selected (i.e. a 3d object, 2d object, something with its own properties)then i was a drop menu where I right clicked displaying the strings of info I wanted to. (i.e. right click on a 3d object and it has a drop down menu showing stuff like, position, radius/diamiter ect.) And i was the menus to be costomisable like using an image. So if anyone has the time and is ever so kind..could you help me please.
Advertisement
You need to look up the TrackPopupMenu() function, assuming you're programming in Windows. For a cross-platform solution, I dunno.
For the selection using opengl, the easiest method for this is to use the selection buffer. Here's a small tutorial on how to use it:
http://www.opengl.org/resources/faq/technical/selection.htm

For the custom UI part, I would recommend that you start by using the Windows UI. Then if you really need to customize it, you'll either have to create one from scratch, or use an existing one. I believe this library is open source, so you might want to give it a try:
http://glgooey.sourceforge.net/

Good Luck !
Don't listen to all these lame people who do things the slacky way! Do it the right way and make your own GUI stuff in OpenGL. That way it will be cross platform AND you can costomize the hell out of it!

It's a good way to learn OpenGL too. ;)
-- I waz here --
Thanks guys. I downloaded that gooey program..I loved it thanks guys.

This topic is closed to new replies.

Advertisement