• Home
  • Raw
  • Download

Lines Matching refs:display_

22     : width_(width), height_(height), display_(NULL), context_(NULL) {  in GlxRenderer()
32 if ((display_ = XOpenDisplay(NULL)) == NULL) { in Init()
37 int screen = DefaultScreen(display_); in Init()
45 if ((vi = glXChooseVisual(display_, screen, attr_list)) == NULL) { in Init()
50 context_ = glXCreateContext(display_, vi, 0, true); in Init()
58 display_, RootWindow(display_, vi->screen), vi->visual, AllocNone); in Init()
61 window_ = XCreateWindow(display_, RootWindow(display_, vi->screen), 0, 0, in Init()
67 XSetStandardProperties(display_, window_, window_title, window_title, None, in Init()
70 Atom wm_delete = XInternAtom(display_, "WM_DELETE_WINDOW", True); in Init()
72 XSetWMProtocols(display_, window_, &wm_delete, 1); in Init()
75 XMapRaised(display_, window_); in Init()
77 if (!glXMakeCurrent(display_, window_, context_)) { in Init()
82 if (!glXMakeCurrent(display_, None, NULL)) { in Init()
93 glXMakeCurrent(display_, window_, context_); in Destroy()
95 glXMakeCurrent(display_, None, NULL); in Destroy()
96 glXDestroyContext(display_, context_); in Destroy()
100 if (display_ != NULL) { in Destroy()
101 XCloseDisplay(display_); in Destroy()
102 display_ = NULL; in Destroy()
121 if (!glXMakeCurrent(display_, window_, context_)) { in Resize()
125 if (!glXMakeCurrent(display_, None, NULL)) { in Resize()
136 XSetWMNormalHints(display_, window_, size_hints); in Resize()
142 XConfigureWindow(display_, window_, CWWidth | CWHeight, &wc); in Resize()
153 if (!glXMakeCurrent(display_, window_, context_)) { in OnFrame()
156 while (XPending(display_)) { in OnFrame()
157 XNextEvent(display_, &event); in OnFrame()
169 glXSwapBuffers(display_, window_); in OnFrame()
171 if (!glXMakeCurrent(display_, None, NULL)) { in OnFrame()