*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> glXImportContextEXT (3)              


glXImportContextEXT()                       glXImportContextEXT()

NAME    [Toc]    [Back]

       glXImportContextEXT  -  import  another process's indirect
       rendering context.

SYNOPSIS    [Toc]    [Back]

       GLXContext glXImportContextEXT(
               Display *dpy,
               GLXContextID contextID );

PARAMETERS    [Toc]    [Back]

       Specifies the connection to the X server.  Specifies a GLX
       rendering context.

DESCRIPTION    [Toc]    [Back]

       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

       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
       extension,  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.

ERRORS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

       glXCreateContext(), glXQueryVersion(),  glXQueryExtensionsString(),
 glXGetContextIDEXT(), glXFreeContextEXT()

[ Back ]
 Similar pages
Name OS Title
gss_import_sec_context Tru64 Import a security context established by another process.
glXCreateContext Tru64 create a new GLX rendering context
glxcreatecontext IRIX create a new GLX rendering context
glxcreatenewcontext IRIX create a new GLX rendering context
glxcopycontext IRIX copy state from one rendering context to another
glXCopyContext Tru64 copy state from one rendering context to another
glxquerycontextinfoext IRIX returns information about a GLX rendering context
glxbindhyperpipesgix IRIX bind a rendering context with a hyperpipe configuration
glxcreatecontextwithconfigsgix IRIX create a new GLX rendering context with specified frame buffer configuration
mi_switch NetBSD switch to another process context
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service