glxquerycontextinfoext - Man Page






glXQueryContextInfoEXT(3G)  OpenGL Reference - GLX  glXQueryContextInfoEXT(3G)



NAME
     glXQueryContextInfoEXT - returns information about	a GLX rendering
     context


C SPECIFICATION
     int glXQueryContextInfoEXT( Display *dpy,
				 GLXContext ctx,
				 int attribute,
				 int *value )


PARAMETERS
     dpy	Specifies the connection to the	X server.

     ctx	Specifies a GLX	rendering context.

     attribute	Specifies the context attribute	to be returned.

     value	Returns	the requested value.


DESCRIPTION
     glXQueryContextInfoEXT returns in value the value of attribute for	ctx;
     it	may cause a round trip to the server.

     attribute is one of the following:

     GLX_SHARE_CONTEXT	   XID of the share list context that was specified
			   when	ctx was	created	by calling glXCreateContext or
			   NULL	if ctx is not part of a	share list.

     GLX_VISUAL_ID	   Visual i.d. for XVisualInfo structure that is
			   associated with ctx.

     GLX_SCREEN		   Screen number for ctx.

     glXQueryContextInfoEXT returns an error code if it	fails for any reason;
     otherwise,	zero is	returned.


NOTES
     glXQueryContextInfoEXT is part of the EXT_import_context extension.


ERRORS
     glXQueryContextInfoEXT returns GLX_BAD_ATTRIBUTE if attribute is invalid.

     A GLXBadContext error is generated	if ctx is not a	valid rendering
     context.





									Page 1






glXQueryContextInfoEXT(3G)  OpenGL Reference - GLX  glXQueryContextInfoEXT(3G)



SEE ALSO
     glXCreateContext





















































									Page 2