Lines Matching defs:Dpy
45 static Display *Dpy;
81 scrnum = DefaultScreen(Dpy);
82 root = RootWindow(Dpy, scrnum);
84 VisInfo = glXChooseVisual(Dpy, scrnum, attrib);
96 attr.colormap = XCreateColormap(Dpy, root, VisInfo->visual, AllocNone);
100 Win = XCreateWindow(Dpy, root, xpos, ypos, WinWidth, WinHeight,
114 XSetNormalHints(Dpy, Win, &sizehints);
115 XSetStandardProperties(Dpy, Win, name, name,
119 XMapWindow(Dpy, Win);
133 if (Win && !glXMakeCurrent(Dpy, Win, Contexts[TexContext])) {
179 Dpy = XOpenDisplay(DisplayName);
180 if (!Dpy) {
189 Contexts[i] = glXCreateContext(Dpy, VisInfo, share, True);
194 if (!glXMakeCurrent(Dpy, Win, Contexts[i])) {
216 if (Win && !glXMakeCurrent(Dpy, Win, Contexts[DrawContext])) {
252 glXSwapBuffers(Dpy, Win);
260 while (XPending(Dpy) > 0) {
262 XNextEvent(Dpy, &event);