GLXCREATEWINDOW(3gl)GLXCREATEWINDOW(3gl)NAME
glXCreateWindow - create an onscreen rendering area
C SPECIFICATION
GLXWindow glXCreateWindow( Display *dpy,
GLXFBConfig config,
Window win,
int* attribList )
PARAMETERS
dpy Specifies the connection to the X server.
config Specifies the GLXFBConfig that defines the structure of the
rendering area.
win Specifies the X window
attribList
Specifies a list of attributes for the window.
DESCRIPTION
glXCreateWindow creates an onscreen rendering area from an X Window
with a visual that corresponding to the desired GLXFBconfig and returns
its XID. Any GLX rendering context created with a compatible GLXFBCon‐
fig can be used to render into this window.
attribList has the same structure as described for glXChooseFBConfig.
Currently no attributes are recognized, so attribList must be NULL or
empty (first attribute of None).
NOTES
glXCreateWindow is part of the GLX Version 1.3 command set. The func‐
tion is only valid if the connection supports GLX Version 1.3 or later.
ERRORS
BadMatch is generated if win was not created with a visual that corre‐
sponds to config.
BadMatch is generated if config does not support rendering to windows.
GLXBadFBConfig is generated if config is not a valid GLXFBConfig.
BadWindow is generated if win is not a valid X window.
BadAlloc is generated if there is already a GLXFBConfig associated with
win (as a result of a previous glXCreateWindow call).
BadAlloc is generated if the server cannot allocate the GLX window.
SEE ALSO
glXCreateNewContext, glXMakeContextCurrent, glXCreatePixmap, glXCre‐
atePbuffer, glXChooseFBConfig, glXGetVisualFromFBConfig
21 May 01 GLXCREATEWINDOW(3gl)