Forum Archive

Go Back   3D Realms Forums > General Topics > Programming Forum
Blogs FAQ Members List Social Groups Calendar Mark Forums Read


Thread Tools
Old 12-19-2006, 06:32 AM   #1
Drop down menu with C++/OpenGL

I am in need of creating a drop down with OpenGL and C++. Dev-C++ has been really cool so far but my question is, how do you design a Drop down menu class?. Do you have to use a double-link list or what? I already defined a Button class which is a single-linked list so each node is a button. Now I'll try "drawing" what I am thinking is a good answer, but I'd like to have feedback please. Thanks in advance.
(P): Pointer
[Option 1...3]: Main menu options
[Suboption2..3]: Submenu for Option2 and Option3.

                       /                /
NULL<--[Suboption2]<--/ [Suboption3]<--/
              |                 |
              V                 V
       /                /                                                       
NULL<-/          NULL<-/
Last edited by Ricardo_V; 12-20-2006 at 06:49 AM.
Ricardo_V is offline  
Old 12-19-2006, 07:00 AM   #2
Re: Drop down menu with C++/OpenGL
Use code tag
Foxy is offline  
Old 12-19-2006, 10:12 AM   #3
Re: Drop down menu with C++/OpenGL
The big question is: Do you want to implement that all by yourself for educational purpose? Otherwhise I'd suggest using some 3rd party GUI library like glgooey.
M:I - New Dawn
a Max Payne 2 modification
theHunted is offline  
Old 12-19-2006, 11:19 AM   #4
Re: Drop down menu with C++/OpenGL
Foxy is offline  
Old 12-20-2006, 06:51 AM   #5
Re: Drop down menu with C++/OpenGL
Yes, I want to implement it all by myself for educational purpose. Actually I've checked out PLIB and other widgets, and they are all cool, but I want to see how it's like to implement it by myself. Thanks alot
Ricardo_V is offline  
Old 12-20-2006, 01:40 PM   #6
Re: Drop down menu with C++/OpenGL
a double-link list
Why doubly linked? Can't think why you'd need to parse backwards up a drop-down menu.
Foxy is offline  
Old 01-08-2007, 08:09 PM   #7

DudeMiester's Avatar
Re: Drop down menu with C++/OpenGL
If you search there's a nice simple XML based OGL GUI framework that may be of use
Forums are the Opiate of the Masses
Higher Game -- "Animal fur is renewable, unlike the oil used to make plastic!"
DudeMiester is offline  
Old 01-09-2007, 07:31 PM   #8

Lain's Avatar
Re: Drop down menu with C++/OpenGL
i've seen people doing it with XML, OGRE3d allows you to create menu's using their libraries, since it's opensource why don't you check it and optimize it for yourself?
Frag=Superczar kissing my shotgun..

Wii code: 1999-5973-3442-4435
Brawl: 3050-7344-2657
Lain is offline  


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 11:39 PM.

Page generated in 0.14504600 seconds (100.00% PHP - 0% MySQL) with 16 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.