1GLXIMPORTCONTEXTEXT(3G)          OpenGL Manual         GLXIMPORTCONTEXTEXT(3G)
2
3
4

NAME

6       glXImportContextEXT - import another process's indirect rendering
7       context.
8

C SPECIFICATION

10       GLXContext glXImportContextEXT(Display * dpy, GLXContextID contextID);
11

PARAMETERS

13       dpy
14           Specifies the connection to the X server.
15
16       contextID
17           Specifies a GLX rendering context.
18

DESCRIPTION

20       glXImportContextEXT creates a GLXContext given the XID of an existing
21       GLXContext. It may be used in place of glXCreateContext(), to share
22       another process's indirect rendering context.
23
24       Only the server-side context information can be shared between X
25       clients; client-side state, such as pixel storage modes, cannot be
26       shared. Thus, glXImportContextEXT must allocate memory to store
27       client-side information. This memory is freed by calling
28       glXFreeContextEXT().
29
30       This call does not create a new XID. It merely makes an existing object
31       available to the importing client (Display *). Like any XID, it goes
32       away when the creating client drops its connection or the ID is
33       explicitly deleted. Note that this is when the XID goes away. The
34       object goes away when the XID goes away AND the context is not current
35       to any thread.
36
37       If contextID refers to a direct rendering context then no error is
38       generated but glXImportContextEXT returns NULL.
39
40       glXImportContextEXT is part of the GLX_EXT_import_context extension,
41       not part of the core GLX command set. If GLX_EXT_import_context is
42       included in the string returned by glXQueryExtensionsString(), the
43       extension is supported.
44

ERRORS

46       GLXBadContext is generated if contextID does not refer to a valid
47       context.
48

SEE ALSO

50       glXCreateContext(), glXQueryVersion(), glXQueryExtensionsString(),
51       glXGetContextIDEXT(), glXFreeContextEXT()
52
54       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
55       under the SGI Free Software B License. For details, see
56       http://oss.sgi.com/projects/FreeB/.
57

AUTHORS

59       opengl.org
60
61
62
63opengl.org                        07/13/2018           GLXIMPORTCONTEXTEXT(3G)
Impressum