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);
335 GL_hrc = this->gl_data->wglCreateContext(GL_hdc);
346 if ( this->gl_data->WGL_ARB_pixel_format ) {
347 this->gl_data->wglGetPixelFormatAttribivARB =
349 this->gl_data->wglGetProcAddress("wglGetPixelFormatAttribivARB");
351 this->gl_data->wglGetPixelFormatAttribivARB = NULL;
366 this->gl_data->wglSwapIntervalEXT = WIN_GL_GetProcAddress(this, "wglSwapIntervalEXT");
367 this->gl_data->wglGetSwapIntervalEXT = WIN_GL_GetProcAddress(this, "wglGetSwapIntervalEXT");
369 this->gl_data->wglSwapIntervalEXT = NULL;
370 this->gl_data->wglGetSwapIntervalEXT = NULL;
373 if ( this->gl_data->wglSwapIntervalEXT ) {
374 this->gl_data->wglSwapIntervalEXT(this->gl_config.swap_control);
393 this->gl_data->wglMakeCurrent(NULL, NULL);
394 this->gl_data->wglDeleteContext(GL_hrc);
415 if ( ! this->gl_data->wglMakeCurrent(GL_hdc, GL_hrc) ) {
428 if ( this->gl_data->wglGetSwapIntervalEXT ) {
429 *value = this->gl_data->wglGetSwapIntervalEXT();
435 if ( this->gl_data->wglGetPixelFormatAttribivARB ) {
486 this->gl_data->wglGetPixelFormatAttribivARB(GL_hdc, pixel_format, 0, 1, &wgl_attrib, value);
496 this->gl_data->wglGetPixelFormatAttribivARB(GL_hdc, pixel_format, 0, 1, &wgl_attrib, value);
557 if ( this->gl_data->wglGetSwapIntervalEXT ) {
558 *value = this->gl_data->wglGetSwapIntervalEXT();
581 this->gl_data->wglGetProcAddress = NULL;
582 this->gl_data->wglCreateContext = NULL;
583 this->gl_data->wglDeleteContext = NULL;
584 this->gl_data->wglMakeCurrent = NULL;
585 this->gl_data->wglGetPixelFormatAttribivARB = NULL;
586 this->gl_data->wglSwapIntervalEXT = NULL;
587 this->gl_data->wglGetSwapIntervalEXT = NULL;
617 SDL_memset(this->gl_data, 0, sizeof(*this->gl_data));
618 this->gl_data->wglGetProcAddress = (void * (WINAPI *)(const char *))
620 this->gl_data->wglCreateContext = (HGLRC (WINAPI *)(HDC))
622 this->gl_data->wglDeleteContext = (BOOL (WINAPI *)(HGLRC))
624 this->gl_data->wglMakeCurrent = (BOOL (WINAPI *)(HDC, HGLRC))
626 this->gl_data->wglSwapIntervalEXT = (void (WINAPI *)(int))
628 this->gl_data->wglGetSwapIntervalEXT = (int (WINAPI *)(void))
631 if ( (this->gl_data->wglGetProcAddress == NULL) ||
632 (this->gl_data->wglCreateContext == NULL) ||
633 (this->gl_data->wglDeleteContext == NULL) ||
634 (this->gl_data->wglMakeCurrent == NULL) ) {
651 func = this->gl_data->wglGetProcAddress(proc);