MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / startSubMenu

Function startSubMenu

Samples/NiViewer/Menu.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void 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
90void createMenuEntry(const char* csName, ActionFunc func, int arg)
91{

Callers 1

createMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected