Lines Matching refs:mpImpl
38 : mpImpl(new OpenGLContext_Impl) in OpenGLContext()
45 if(mpImpl->ctx) in ~OpenGLContext()
47 glXMakeCurrent(mpImpl->dpy, None, NULL); in ~OpenGLContext()
52 glXDestroyContext(mpImpl->dpy, mpImpl->ctx); in ~OpenGLContext()
54 XFree(mpImpl->vi); in ~OpenGLContext()
55 delete mpImpl; in ~OpenGLContext()
60 mpImpl->dpy = XOpenDisplay(NULL); in init()
62 if( mpImpl->dpy == NULL ) in init()
68 Window root = DefaultRootWindow(mpImpl->dpy); in init()
71 mpImpl->vi = glXChooseVisual(mpImpl->dpy, 0, att); in init()
73 if( mpImpl->vi == NULL ) in init()
79 Colormap cmap = XCreateColormap(mpImpl->dpy, root, mpImpl->vi->visual, AllocNone); in init()
85 …mpImpl->win = XCreateWindow(mpImpl->dpy, root, 0, 0, 600, 600, 0, mpImpl->vi->depth, InputOutput, … in init()
87 XMapWindow(mpImpl->dpy, mpImpl->win); in init()
88 XStoreName(mpImpl->dpy, mpImpl->win, "Test Window"); in init()
90 mpImpl->ctx = glXCreateContext(mpImpl->dpy, in init()
91 mpImpl->vi, in init()
94 if( mpImpl->ctx == NULL ) in init()
100 if( !glXMakeCurrent( mpImpl->dpy, mpImpl->win, mpImpl->ctx ) ) in init()
126 XMoveResizeWindow(mpImpl->dpy, mpImpl->win, nX, nY, nWidth, nHeight); in setWinPosAndSize()
131 XResizeWindow(mpImpl->dpy, mpImpl->win, nWidth, nHeight); in setWinSize()
136 glXMakeCurrent( mpImpl->dpy, mpImpl->win, mpImpl->ctx ); in makeCurrent()
141 glXMakeCurrent(mpImpl->dpy, None, NULL); in resetCurrent()
146 glXSwapBuffers(mpImpl->dpy, mpImpl->win); in swapBuffers()
152 XSync(mpImpl->dpy, false); in sync()