Lines Matching refs:GLWin

238     } GLWin;  member in __anon15b211eb0111::OGLTransitionerImpl
380 GLWin.hWnd = sysData->hWnd; in createWindow()
382 GLWin.dpy = reinterpret_cast<unx::Display*>(sysData->pDisplay); in createWindow()
384 if( unx::glXQueryExtension( GLWin.dpy, NULL, NULL ) == false ) in createWindow()
387 GLWin.win = sysData->aWindow; in createWindow()
389 OSL_TRACE("parent window: %d", GLWin.win); in createWindow()
392 unx::XGetWindowAttributes( GLWin.dpy, GLWin.win, &xattr ); in createWindow()
394 GLWin.screen = XScreenNumberOfScreen( xattr.screen ); in createWindow()
462 vi = unx::glXChooseVisual( GLWin.dpy, in createWindow()
463 GLWin.screen, in createWindow()
471 fbconfigs = glXGetFBConfigs (GLWin.dpy, GLWin.screen, &nfbconfigs); in createWindow()
474 visinfo = glXGetVisualFromFBConfig (GLWin.dpy, fbconfigs[i]); in createWindow()
478 glXGetFBConfigAttrib (GLWin.dpy, fbconfigs[i], GLX_DRAWABLE_TYPE, &value); in createWindow()
482 glXGetFBConfigAttrib (GLWin.dpy, fbconfigs[i], in createWindow()
488 glXGetFBConfigAttrib (GLWin.dpy, fbconfigs[i], in createWindow()
494 glXGetFBConfigAttrib (GLWin.dpy, fbconfigs[i], in createWindow()
506 vi = glXGetVisualFromFBConfig( GLWin.dpy, fbconfigs[i] ); in createWindow()
554 GLWin.hWnd = sysData->hWnd; in createWindow()
556 GLWin.dpy = reinterpret_cast<unx::Display*>(pChildSysData->pDisplay); in createWindow()
557 GLWin.win = pChildSysData->aWindow; in createWindow()
560 GLWin.fbc = fbconfigs[i]; in createWindow()
562 GLWin.vi = vi; in createWindow()
563 GLWin.GLXExtensions = unx::glXQueryExtensionsString( GLWin.dpy, GLWin.screen ); in createWindow()
564 OSL_TRACE("available GLX extensions: %s", GLWin.GLXExtensions); in createWindow()
599 GLWin.Width = aCanvasArea.Width; in createWindow()
600 GLWin.Height = aCanvasArea.Height; in createWindow()
604 GLWin.hDC = GetDC(GLWin.hWnd); in createWindow()
606 GLWin.ctx = glXCreateContext(GLWin.dpy, in createWindow()
607 GLWin.vi, in createWindow()
610 if( GLWin.ctx == NULL ) { in createWindow()
638 int WindowPix = ChoosePixelFormat(GLWin.hDC,&PixelFormatFront); in createWindow()
639 SetPixelFormat(GLWin.hDC,WindowPix,&PixelFormatFront); in createWindow()
640 GLWin.hRC = wglCreateContext(GLWin.hDC); in createWindow()
641 wglMakeCurrent(GLWin.hDC,GLWin.hRC); in createWindow()
643 if( !glXMakeCurrent( GLWin.dpy, GLWin.win, GLWin.ctx ) ) { in createWindow()
650 if( glXQueryVersion( GLWin.dpy, &glxMajor, &glxMinor ) ) in createWindow()
654 GLWin.GLExtensions = glGetString( GL_EXTENSIONS ); in createWindow()
655 OSL_TRACE("available GL extensions: %s", GLWin.GLExtensions); in createWindow()
657 mbTextureFromPixmap = GLWin.HasGLXExtension( "GLX_EXT_texture_from_pixmap" ); in createWindow()
658 mbGenerateMipmap = GLWin.HasGLExtension( "GL_SGIS_generate_mipmap" ); in createWindow()
660 if( GLWin.HasGLXExtension("GLX_SGI_swap_control" ) ) { in createWindow()
676 XSync(GLWin.dpy, false); in createWindow()
694 SwapBuffers(GLWin.hDC); in createWindow()
696 unx::glXSwapBuffers(GLWin.dpy, GLWin.win); in createWindow()
742 XSync(GLWin.dpy, false); in createWindow()
779 XSync(GLWin.dpy, false); in createWindow()
787 LeavingPixmap = glXCreatePixmap( GLWin.dpy, GLWin.fbc, maLeavingPixmap, pixmapAttribs ); in createWindow()
791 XSync(GLWin.dpy, false); in createWindow()
798 unx::XFreePixmap( GLWin.dpy, maLeavingPixmap ); in createWindow()
804 EnteringPixmap = glXCreatePixmap( GLWin.dpy, GLWin.fbc, maEnteringPixmap, pixmapAttribs ); in createWindow()
808 XSync(GLWin.dpy, false); in createWindow()
816 unx::XFreePixmap( GLWin.dpy, maEnteringPixmap ); in createWindow()
835 if(GLWin.ctx)//if we have a rendering context, let's init the slides in createWindow()
844 XSync( GLWin.dpy, false ); in createWindow()
849 XSynchronize( GLWin.dpy, true ); in createWindow()
875 myglXBindTexImageEXT (GLWin.dpy, pixmap, GLX_FRONT_LEFT_EXT, NULL); in createWindow()
1108 XSync(GLWin.dpy, false); in createWindow()
1133 wglMakeCurrent(GLWin.hDC,GLWin.hRC); in createWindow()
1136 glXMakeCurrent( GLWin.dpy, GLWin.win, GLWin.ctx ); in createWindow()
1145 static_cast<double>(GLWin.Width), in createWindow()
1146 static_cast<double>(GLWin.Height) ); in createWindow()
1149 SwapBuffers(GLWin.hDC); in createWindow()
1151 unx::glXSwapBuffers(GLWin.dpy, GLWin.win); in createWindow()
1159 XSync( GLWin.dpy, false ); in createWindow()
1188 if (GLWin.hRC) in createWindow()
1190 wglMakeCurrent( GLWin.hDC, 0 ); // kill Device Context in createWindow()
1191 wglDeleteContext( GLWin.hRC ); // Kill Render Context in createWindow()
1192 ReleaseDC( GLWin.hWnd, GLWin.hDC ); // Release Window in createWindow()
1195 if(GLWin.ctx) in createWindow()
1197 glXMakeCurrent(GLWin.dpy, None, NULL); in createWindow()
1201 glXDestroyContext(GLWin.dpy, GLWin.ctx); in createWindow()
1202 GLWin.ctx = NULL; in createWindow()
1208 GLWin.win = 0; in createWindow()
1215 wglMakeCurrent(GLWin.hDC,GLWin.hRC); in createWindow()
1218 glXMakeCurrent( GLWin.dpy, GLWin.win, GLWin.ctx ); in createWindow()
1225 myglXReleaseTexImageEXT( GLWin.dpy, LeavingPixmap, GLX_FRONT_LEFT_EXT ); in createWindow()
1226 glXDestroyGLXPixmap( GLWin.dpy, LeavingPixmap ); in createWindow()
1229 unx::XFreePixmap( GLWin.dpy, maLeavingPixmap ); in createWindow()
1235 myglXReleaseTexImageEXT( GLWin.dpy, EnteringPixmap, GLX_FRONT_LEFT_EXT ); in createWindow()
1236 glXDestroyGLXPixmap( GLWin.dpy, EnteringPixmap ); in createWindow()
1239 unx::XFreePixmap( GLWin.dpy, maEnteringPixmap ); in createWindow()
1289 XSynchronize( GLWin.dpy, sal_synchronize && *sal_synchronize == '1' ); in createWindow()
1306 GLWin(), in createWindow()
1321 GLWin.hWnd = 0; in createWindow()
1323 GLWin.ctx = 0; in createWindow()