MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / initFromWindow

Method initFromWindow

server/VirtualWin.cpp:172–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172void VirtualWin::initFromWindow(VGLFBConfig config_)
173{
174 if(edpy != EGL_NO_DISPLAY)
175 THROW("VirtualWin::initFromWindow() method not supported with EGL/X11");
176
177 XSync(dpy, False);
178 XWindowAttributes xwa;
179 XGetWindowAttributes(dpy, x11Draw, &xwa);
180 init(xwa.width, xwa.height, config_);
181}
182
183
184// Get the current 3D off-screen drawable

Callers 1

initVWMethod · 0.80

Calls 1

initFunction · 0.70

Tested by

no test coverage detected