| 77 | } |
| 78 | |
| 79 | void startSubMenu(const char* csName) |
| 80 | { |
| 81 | int nNewMenuID = glutCreateMenu(mainMenuCallback); |
| 82 | glutSetMenu(g_MenuBuilder.aMenuPath[g_MenuBuilder.nMenuPathIndex]); |
| 83 | glutAddSubMenu(csName, nNewMenuID); |
| 84 | |
| 85 | (g_MenuBuilder.nMenuPathIndex)++; |
| 86 | g_MenuBuilder.aMenuPath[g_MenuBuilder.nMenuPathIndex] = nNewMenuID; |
| 87 | glutSetMenu(g_MenuBuilder.aMenuPath[g_MenuBuilder.nMenuPathIndex]); |
| 88 | } |
| 89 | |
| 90 | void createMenuEntry(const char* csName, ActionFunc func, int arg) |
| 91 | { |