MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / initGL

Function initGL

cpp/3_CUDA_Features/bindlessTexture/bindlessTexture.cpp:269–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void initGL(int *argc, char **argv)
270{
271 // initialize GLUT callback functions
272 glutInit(argc, argv);
273 glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
274 glutInitWindowSize(windowSize.x, windowSize.y);
275 glutCreateWindow(sSDKsample);
276 glutDisplayFunc(display);
277 glutKeyboardFunc(keyboard);
278 glutReshapeFunc(reshape);
279 glutIdleFunc(idle);
280
281 if (!isGLVersionSupported(2, 0) || !areGLExtensionsSupported("GL_ARB_pixel_buffer_object")) {
282 fprintf(stderr, "Required OpenGL extensions are missing.");
283 exit(EXIT_FAILURE);
284 }
285}
286
287void runAutoTest(const char *ref_file, char *exec_path)
288{

Callers 1

mainFunction · 0.70

Calls 2

isGLVersionSupportedFunction · 0.85
areGLExtensionsSupportedFunction · 0.85

Tested by

no test coverage detected