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

Function glXCreateGLXPbufferSGIX

server/faker-glx.cpp:476–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476GLXPbuffer glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config,
477 unsigned int width, unsigned int height, int *attrib_list)
478{
479 int attribs[MAX_ATTRIBS + 1], j = 0;
480 if(attrib_list)
481 {
482 for(int i = 0; attrib_list[i] != None && i < MAX_ATTRIBS - 2; i += 2)
483 {
484 attribs[j++] = attrib_list[i]; attribs[j++] = attrib_list[i + 1];
485 }
486 }
487 attribs[j++] = GLX_PBUFFER_WIDTH; attribs[j++] = width;
488 attribs[j++] = GLX_PBUFFER_HEIGHT; attribs[j++] = height;
489 attribs[j] = None;
490 return glXCreatePbuffer(dpy, config, attribs);
491}
492
493
494// Pixmap rendering in VirtualGL is implemented by redirecting rendering into

Callers 1

CreatePbufferFunction · 0.85

Calls 1

glXCreatePbufferFunction · 0.85

Tested by

no test coverage detected