Lines Matching refs:gl_data
133 hglrc = this->gl_data->wglCreateContext(hdc);
135 this->gl_data->wglMakeCurrent(hdc, hglrc);
139 this->gl_data->wglGetProcAddress("wglGetExtensionsStringARB");
147 this->gl_data->WGL_ARB_pixel_format = 0;
152 this->gl_data->wglGetProcAddress("wglChoosePixelFormatARB");
155 this->gl_data->WGL_ARB_pixel_format = 1;
160 this->gl_data->wglMakeCurrent(NULL, NULL);
161 this->gl_data->wglDeleteContext(hglrc);
323 GL_hrc = this->gl_data->wglCreateContext(GL_hdc);
334 if ( this->gl_data->WGL_ARB_pixel_format ) {
335 this->gl_data->wglGetPixelFormatAttribivARB =
337 this->gl_data->wglGetProcAddress("wglGetPixelFormatAttribivARB");
339 this->gl_data->wglGetPixelFormatAttribivARB = NULL;
354 this->gl_data->wglSwapIntervalEXT = WIN_GL_GetProcAddress(this, "wglSwapIntervalEXT");
355 this->gl_data->wglGetSwapIntervalEXT = WIN_GL_GetProcAddress(this, "wglGetSwapIntervalEXT");
357 this->gl_data->wglSwapIntervalEXT = NULL;
358 this->gl_data->wglGetSwapIntervalEXT = NULL;
361 if ( this->gl_data->wglSwapIntervalEXT ) {
362 this->gl_data->wglSwapIntervalEXT(this->gl_config.swap_control);
381 this->gl_data->wglMakeCurrent(NULL, NULL);
382 this->gl_data->wglDeleteContext(GL_hrc);
403 if ( ! this->gl_data->wglMakeCurrent(GL_hdc, GL_hrc) ) {
416 if ( this->gl_data->wglGetSwapIntervalEXT ) {
417 *value = this->gl_data->wglGetSwapIntervalEXT();
423 if ( this->gl_data->wglGetPixelFormatAttribivARB ) {
474 this->gl_data->wglGetPixelFormatAttribivARB(GL_hdc, pixel_format, 0, 1, &wgl_attrib, value);
484 this->gl_data->wglGetPixelFormatAttribivARB(GL_hdc, pixel_format, 0, 1, &wgl_attrib, value);
545 if ( this->gl_data->wglGetSwapIntervalEXT ) {
546 *value = this->gl_data->wglGetSwapIntervalEXT();
569 this->gl_data->wglGetProcAddress = NULL;
570 this->gl_data->wglCreateContext = NULL;
571 this->gl_data->wglDeleteContext = NULL;
572 this->gl_data->wglMakeCurrent = NULL;
573 this->gl_data->wglGetPixelFormatAttribivARB = NULL;
574 this->gl_data->wglSwapIntervalEXT = NULL;
575 this->gl_data->wglGetSwapIntervalEXT = NULL;
605 SDL_memset(this->gl_data, 0, sizeof(*this->gl_data));
606 this->gl_data->wglGetProcAddress = (void * (WINAPI *)(const char *))
608 this->gl_data->wglCreateContext = (HGLRC (WINAPI *)(HDC))
610 this->gl_data->wglDeleteContext = (BOOL (WINAPI *)(HGLRC))
612 this->gl_data->wglMakeCurrent = (BOOL (WINAPI *)(HDC, HGLRC))
614 this->gl_data->wglSwapIntervalEXT = (void (WINAPI *)(int))
616 this->gl_data->wglGetSwapIntervalEXT = (int (WINAPI *)(void))
619 if ( (this->gl_data->wglGetProcAddress == NULL) ||
620 (this->gl_data->wglCreateContext == NULL) ||
621 (this->gl_data->wglDeleteContext == NULL) ||
622 (this->gl_data->wglMakeCurrent == NULL) ) {
639 func = this->gl_data->wglGetProcAddress(proc);