So i want to try the occlusion method. My program uses OpenGL without the glut routines. So i added the headers and libraries from the game_dev example to my program. But when i try to generate the queries with a call to: glGenQueriesARB() I get -
First-chance exception at 0x00000000 in ePost.exe: 0xC0000005: Access violation at location 0x0000000000000000.
Maybe i am not initiating the glut libraries and routines correctly.
The game-dev sample is below. The question is, which of these do i need to call before beginning the queries? Right now i am not calling any of them.
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH | GLUT_RGB );
glutInitWindowSize(512, 512);
glutCreateWindow("ARB_occlusion_query example");
glut_helpers_initialize();
glutDisplayFunc(display);
glutMainLoop();
glh_init_extensions("GL_ARB_occlusion_query ")