GLXDISABLEXINERAMASUN(3gl)GLXDISABLEXINERAMASUN(3gl)NAMEglXDisableXineramaSUN - Disable Xinerama support in OpenGL
C SPECIFICATION
int glXDisableXineramaSUN( Display *dpy )
PARAMETERS
dpy Specifies the connection to the X server.
DESCRIPTION
The glXDisableXineramaSUN function disables Xinerama support in OpenGL,
so that OpenGL only renders to a sub-window which is bound with OpenGL
context in multi-screen Xinerama environment. The glXDisableXinerama‐
SUN function has no effect on OpenGL render behavior in non-Xinerama
environment.
This function must be called before any other GLX functions except glX‐
InitThreadsSUN, glXQueryExtension and glXGetClientString in a GL pro‐
gram, and it must complete before other GLX/GL call is made. This func‐
tion returns a nonzero status if initialization was successful; other‐
wise, it returns zero.
This function is only client side so the extension string can be
retrieved using glXGetClientString. Typical usage:
#ifdef GLX_SUN_disable_xinerama
if ( strstr ( glXGetClientString (dpy, GLX_EXTENSIONS),
"GLX_SUN_disable_xinerama" ) ) {
if ( ! glXDisableXineramaSUN (dpy) ) {
printf ("Fail to disable OpenGL Xinerama support\n");
}
}
#endif
NOTES
glXQueryExtensionsString does not show a string for this function since
this function is client side only.
glXDisableXineramaSUN is part of the GLX_SUN_disable_xinerama exten‐
sion, not part of the core GL command set. If GLX_SUN_disable_xinerama
is included in the string returned by glXGetClientString, when called
with argument GLX_EXTENSIONS, extension glXDisableXineramaSUN is sup‐
ported by the connection.
SEE ALSO
glXGetClientString, glXQueryExtension, glXQueryExtensionsString, glX‐
InitThreadsSUN
18 Aug 00 GLXDISABLEXINERAMASUN(3gl)