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

  man pages->IRIX man pages -> OpenGL/glxquerydrawable (3)              


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

NAME    [Toc]    [Back]

     glXQueryDrawable -	returns	an attribute associated	with a GLX drawable

C SPECIFICATION    [Toc]    [Back]

     void glXQueryDrawable( Display *dpy,
			    GLXDrawable	draw,
			    int	attribute,
			    unsigned int *value	)

PARAMETERS    [Toc]    [Back]

     dpy	Specifies the connection to the	X server.

     draw	Specifies the GLX drawable to be queried.

     attribute	Specifies the attribute	to be returned.

     value	Returns	the requested value.

DESCRIPTION    [Toc]    [Back]

     glXQueryDrawable sets value to the	attribute value	for draw.

     attribute is one of the following:

     GLX_WIDTH		   Width of draw.

     GLX_HEIGHT		   Height of draw.

     GLX_PRESERVED_CONTENTS    [Toc]    [Back]
			   True	if the contents	of GLXPbuffer are preserved
			   when	a resource conflict occurs; False otherwise.

     GLX_LARGEST_PBUFFER   Set when the	GLX pixel buffer is created by calling
			   glXCreatePbuffer.  When False, glXCreatePbuffer
			   fails if it cannot allocate a GLX pixel buffer of
			   size	width by height.  When True, a pixel buffer
			   with	the largest width and height possible (but not
			   larger than the values specified) is	created	when
			   the allocation of the buffer	would otherwise	fail.

     GLX_FBCONFIG_ID	   XID for draw.

     If	draw is	a GLXWindow or GLXPixmap and attribute is set to
			   contents of value are undefined. If attribute is
			   not one of the attributes listed above, the
			   contents of value are undefined.

									Page 1

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

ERRORS    [Toc]    [Back]

     A GLXBadDrawable is generated if draw is not a valid GLXDrawable.

SEE ALSO    [Toc]    [Back]

     glXCreateWindow, glXCreatePixmap, glXCreatePbuffer, glXGetFBConfigAttrib,

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
glxgetcurrentdrawable IRIX return the current drawable
glxgetcurrentreaddrawable IRIX return the current drawable
glxmakecontextcurrent IRIX attach a GLX context to a GLX drawable
drawmode IRIX selects which GL framebuffer is drawable
glXGetCurrentDrawable Tru64 return the current drawable
add_proplist_entry Tru64 adds an Extended File Attribute to the Extended File Attribute buffer
pthread_attr_setdetachstate OpenBSD set and get detachstate attribute
pthread_attr_setstackaddr OpenBSD set and get stackaddr attribute
pthread_attr_getstacksize OpenBSD set and get stacksize attribute
DtDtsFileToAttributeValue HP-UX get a specified attribute value for a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service