1GLXIMPORTCONTEXTEXT(3G) OpenGL Manual GLXIMPORTCONTEXTEXT(3G)
2
3
4
6 glXImportContextEXT - import another process's indirect rendering
7 context.
8
10 GLXContext glXImportContextEXT(Display * dpy, GLXContextID contextID);
11
13 dpy
14 Specifies the connection to the X server.
15
16 contextID
17 Specifies a GLX rendering context.
18
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 EXT_import_context extension, not
41 part of the core GLX command set. If _glxextstring(EXT_import_context)
42 is included in the string returned by glXQueryExtensionsString(), when
43 called with argument GLX_EXTENSIONS, extension EXT_import_context is
44 supported.
45
47 GLXBadContext is generated if contextID does not refer to a valid
48 context.
49
51 glXCreateContext(), glXQueryVersion(), glXQueryExtensionsString(),
52 glXGetContextIDEXT(), glXFreeContextEXT()
53
55 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
56 under the SGI Free Software B License. For details, see
57 http://oss.sgi.com/projects/FreeB/.
58
60 opengl.org
61
62
63
64opengl.org 06/10/2014 GLXIMPORTCONTEXTEXT(3G)