MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / updateViewsMenu

Function updateViewsMenu

src/apps/ociodisplay/main.cpp:289–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void updateViewsMenu(const char * displayValue)
290{
291
292 OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig();
293 glutSetMenu(g_viewsMenuID);
294 int numViewsMenuItems = glutGet(GLUT_MENU_NUM_ITEMS);
295 for (int i = numViewsMenuItems; i > 0; --i)
296 {
297 glutRemoveMenuItem(i);
298 }
299 for (int i = 0; i < config->getNumViews(displayValue); ++i)
300 {
301 glutAddMenuEntry(config->getView(displayValue, i), i);
302 }
303}
304
305void UpdateOCIOGLState()
306{

Callers 2

displayDevice_CBFunction · 0.85
PopulateOCIOMenusFunction · 0.85

Calls 3

GetCurrentConfigFunction · 0.85
getNumViewsMethod · 0.45
getViewMethod · 0.45

Tested by

no test coverage detected