PDA

View Full Version : NEED HELP!!!!!!!!!!



tripp
11-12-2003, 12:09 PM
does anybody have a menu that can plug into a cube building program so I can select the menu to do my functions!!

Honk
11-12-2003, 02:23 PM
Menus are platform dependant, so which 0platform are you talking about?

In case of Windows why dont you use MFC or the Win32SDK like everybody else?

11-12-2003, 02:48 PM
You can use glut. For some quick tutorials and for glut go to http://www.xmission.com/~nate . The way to create menus is:



void menu(int id); // callback prototype
...
int hMenu;
...
hMenu = glutCreateMenu(menu);
glutAddMenuEntry("My Menu!", 0);
glutAddMenuEntry("Do 1", 1);
glutAddMenuEntry("Do 2", 2);
glutAttachMenu(GLUT_RIGHT_BUTTON);
....
void menu(int id)
{
switch (id) {
case 0:
break;
case 1:
//Do 1
break;
case 2:
//Do 2
break;
}
}

Hope this helps! And setting up a glut window is no sweat!