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

Function glInit

Samples/NiUserTracker/main.cpp:310–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 }
309}
310void glInit (int * pargc, char ** argv)
311{
312 glutInit(pargc, argv);
313 glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
314 glutInitWindowSize(GL_WIN_SIZE_X, GL_WIN_SIZE_Y);
315 glutCreateWindow ("User Tracker Viewer");
316 //glutFullScreen();
317 glutSetCursor(GLUT_CURSOR_NONE);
318
319 glutKeyboardFunc(glutKeyboard);
320 glutDisplayFunc(glutDisplay);
321 glutIdleFunc(glutIdle);
322
323 glDisable(GL_DEPTH_TEST);
324 glEnable(GL_TEXTURE_2D);
325
326 glEnableClientState(GL_VERTEX_ARRAY);
327 glDisableClientState(GL_COLOR_ARRAY);
328}
329#endif // USE_GLES
330
331#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"

Callers 2

mainFunction · 0.85
DrawSceneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected