1GLXIMPORTCONTEXTEXT()                                    GLXIMPORTCONTEXTEXT()
2
3
4

NAME

6       glXImportContextEXT  - import another process's indirect rendering con‐
7       text.
8
9

C SPECIFICATION

11       GLXContext glXImportContextEXT( Display *dpy,
12                                       GLXContextID contextID )
13
14       delim $$
15

PARAMETERS

17       dpy        Specifies the connection to the X server.
18
19
20       contextID  Specifies a GLX rendering context.
21
22

DESCRIPTION

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

ERRORS

50       GLXBadContext is generated if contextID does not refer to a valid  con‐
51       text.
52
53

SEE ALSO

55       glXCreateContext, glXQueryVersion, glXQueryExtensionsString, glXGetCon‐
56       textIDEXT, glXFreeContextEXT
57
58
59
60                                                         GLXIMPORTCONTEXTEXT()
Impressum