GLXIMPORTCONTEXTEXT()UNIX Programmer's ManuaGLXIMPORTCONTEXTEXT()
glXImportContextEXT - import another process's indirect
rendering context.
GLXContext glXImportContextEXT( Display *dpy,
GLXContextID contextID )
dpy Specifies the connection to the X server.
contextID Specifies a GLX rendering context.
glXImportContextEXT creates a GLXContext given the XID of an
existing GLXContext. It may be used in place of
glXCreateContext, to share another process's indirect
rendering context.
Only the server-side context information can be shared
between X clients; client-side state, such as pixel storage
modes, cannot be shared. Thus, glXImportContextEXT must
allocate memory to store client-side information. This
memory is freed by calling glXFreeContextEXT.
This call does not create a new XID. It merely makes an
existing object available to the importing client (Display
*). Like any XID, it goes away when the creating client
drops its connection or the ID is explicitly deleted. Note
that this is when the XID goes away. The object goes away
when the XID goes away AND the context is not current to any
thread.
If contextID refers to a direct rendering context then no
error is generated but glXImportContextEXT returns NULL.
glXImportContextEXT is part of the EXT_import_context exten-
sion, not part of the core GLX command set. If
GLX_EXT_import_context is included in the string returned by
glXQueryExtensionsString, when called with argument
GLX_EXTENSIONS, extension EXT_import_context is supported.
GLXBadContext is generated if contextID does not refer to a
valid context.
MirOS BSD #10-current Printed 20.2.2012 1
GLXIMPORTCONTEXTEXT()UNIX Programmer's ManuaGLXIMPORTCONTEXTEXT()
glXCreateContext, glXQueryVersion, glXQueryExtensionsString,
glXGetContextIDEXT, glXFreeContextEXT
MirOS BSD #10-current Printed 20.2.2012 2
Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.