Lines Matching defs:Dpy
49 static Display *Dpy;
104 if (! (*make_context_current)(Dpy, Win[0], Win[0], Context)) {
145 glXSwapBuffers(Dpy, Win[0]);
149 if (!(*make_context_current)(Dpy, Win[1], Win[0], Context)) {
170 glXSwapBuffers(Dpy, Win[1]);
187 if (!glXMakeCurrent(Dpy, Win[i], Context)) {
200 if (XPending(Dpy) > 0) {
201 XNextEvent( Dpy, &event );
250 Dpy = XOpenDisplay(NULL);
251 if (!Dpy) {
256 ScrNum = DefaultScreen(Dpy);
258 glXQueryVersion(Dpy, &major, &minor);
265 const char * const glxExtensions = glXQueryExtensionsString(Dpy, ScrNum);
282 visinfo = glXChooseVisual(Dpy, ScrNum, attrib);
288 Context = glXCreateContext(Dpy, visinfo, NULL, True);
295 Win[0] = CreateWindow(Dpy, ScrNum, visinfo,
298 Win[1] = CreateWindow(Dpy, ScrNum, visinfo,