| 267 | } |
| 268 | |
| 269 | void 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 | |
| 287 | void runAutoTest(const char *ref_file, char *exec_path) |
| 288 | { |
no test coverage detected