The functions from this section may be had by loading the module:
@example
-(use-modules (figl low-level glx))
+(use-modules (figl glx low-level)
@end example
@copying
@end copying
-@defun glXChooseFBConfig
+@deftypefun GLXFBConfig-* glXChooseFBConfig dpy screen attrib_list nelements
Return a list of GLX frame buffer configurations that match the
specified attributes.
@var{attrib_list}, if @var{screen} is invalid, or if @var{dpy} does not
support the GLX extension.
-@end defun
+@end deftypefun
-@defun glXChooseVisual
+@deftypefun XVisualInfo* glXChooseVisual dpy screen attribList
Return a visual that matches specified attributes.
@table @asis
@code{NULL} is returned if an undefined GLX attribute is encountered in
@var{attribList}.
-@end defun
+@end deftypefun
-@defun glXCopyContext
+@deftypefun void glXCopyContext dpy src dst mask
Copy state from one rendering context to another.
@table @asis
@code{GLXBadContext} is generated if either @var{src} or @var{dst} is
not a valid GLX context.
-@end defun
+@end deftypefun
-@defun glXCreateContext
+@deftypefun GLXContext glXCreateContext dpy vis shareList direct
Create a new GLX rendering context.
@table @asis
@code{BadAlloc} is generated if the server does not have enough
resources to allocate the new context.
-@end defun
+@end deftypefun
-@defun glXCreateGLXPixmap
+@deftypefun GLXPixmap glXCreateGLXPixmap dpy vis pixmap
Create an off-screen GLX rendering area.
@table @asis
@code{BadAlloc} is generated if the server cannot allocate the GLX
pixmap.
-@end defun
+@end deftypefun
-@defun glXCreateNewContext
+@deftypefun GLXContext glXCreateNewContext dpy config render_type share_list direct
Create a new GLX rendering context.
@table @asis
@code{BadValue} is generated if @var{config} is not a valid visual (for
example, if a particular GLX implementation does not support it).
-@end defun
+@end deftypefun
-@defun glXCreatePbuffer
+@deftypefun GLXPbuffer glXCreatePbuffer dpy config attrib_list
Create an off-screen rendering area.
@table @asis
to pixel buffers (e.g., @code{GLX_DRAWABLE_TYPE} does not contain
@code{GLX_PBUFFER_BIT}).
-@end defun
+@end deftypefun
-@defun glXCreatePixmap
+@deftypefun GLXPixmap glXCreatePixmap dpy config pixmap attrib_list
Create an off-screen rendering area.
@table @asis
-@end defun
+@end deftypefun
-@defun glXCreateWindow
+@deftypefun GLXWindow glXCreateWindow dpy config win attrib_list
Create an on-screen rendering area.
@table @asis
-@end defun
+@end deftypefun
-@defun glXDestroyContext
+@deftypefun void glXDestroyContext dpy ctx
Destroy a GLX context.
@table @asis
@code{GLXBadContext} is generated if @var{ctx} is not a valid GLX
context.
-@end defun
+@end deftypefun
-@defun glXDestroyGLXPixmap
+@deftypefun void glXDestroyGLXPixmap dpy pix
Destroy a GLX pixmap.
@table @asis
@code{GLXBadPixmap} is generated if @var{pix} is not a valid GLX pixmap.
-@end defun
+@end deftypefun
-@defun glXDestroyPbuffer
+@deftypefun void glXDestroyPbuffer dpy pbuf
Destroy an off-screen rendering area.
@table @asis
@code{GLXBadPbuffer} is generated if @var{pbuf} is not a valid
GLXPbuffer.
-@end defun
+@end deftypefun
-@defun glXDestroyPixmap
+@deftypefun void glXDestroyPixmap dpy pixmap
Destroy an off-screen rendering area.
@table @asis
@code{GLXBadPixmap} is generated if @var{pixmap} is not a valid
GLXPixmap.
-@end defun
+@end deftypefun
-@defun glXDestroyWindow
+@deftypefun void glXDestroyWindow dpy win
Destroy an on-screen rendering area.
@table @asis
@code{GLXBadWindow} is generated if @var{win} is not a valid GLXPixmap.
-@end defun
+@end deftypefun
-@defun glXFreeContextEXT
+@deftypefun void glXFreeContextEXT dpy ctx
Free client-side memory for imported context.
@table @asis
@code{GLXBadContext} is generated if @var{ctx} does not refer to a valid
context.
-@end defun
+@end deftypefun
-@defun glXGetClientString
+@deftypefun const-char-* glXGetClientString dpy name
Return a string describing the client.
@table @asis
length. The vendor-specific information is optional. However, if it is
present, the format and contents are implementation specific.
-@end defun
+@end deftypefun
-@defun glXGetConfig
+@deftypefun int glXGetConfig dpy vis attrib value
Return information about GLX visuals.
@table @asis
@code{GLX_BAD_VISUAL} is returned if @var{vis} doesn't support GLX and
an attribute other than @code{GLX_USE_GL} is requested.
-@end defun
+@end deftypefun
-@defun glXGetContextIDEXT
+@deftypefun GLXContextID glXGetContextIDEXT ctx
Get the XID for a context..
@table @asis
@code{GLXBadContext} is generated if @var{ctx} does not refer to a valid
context.
-@end defun
+@end deftypefun
-@defun glXGetCurrentContext
+@deftypefun GLXContext glXGetCurrentContext
Return the current context.
@code{glXGetCurrentContext} returns the current context, as specified by
-@end defun
+@end deftypefun
-@defun glXGetCurrentDisplay
+@deftypefun Display-* glXGetCurrentDisplay
Get display for current context.
@code{glXGetCurrentDisplay} returns the display for the current context.
make a round-trip to the server, and therefore does not flush any
pending events.
-@end defun
+@end deftypefun
-@defun glXGetCurrentDrawable
+@deftypefun GLXDrawable glXGetCurrentDrawable
Return the current drawable.
@code{glXGetCurrentDrawable} returns the current drawable, as specified
@code{glXGetCurrentDrawable} returns client-side information. It does
not make a round trip to the server.
-@end defun
+@end deftypefun
-@defun glXGetCurrentReadDrawable
+@deftypefun GLXDrawable glXGetCurrentReadDrawable
Return the current drawable.
@code{glXGetCurrentReadDrawable} returns the current read drawable, as
@code{glXGetCurrentReadDrawable} returns client-side information. It
does not make a round-trip to the server.
-@end defun
+@end deftypefun
-@defun glXGetFBConfigAttrib
+@deftypefun int glXGetFBConfigAttrib dpy config attribute value
Return information about a GLX frame buffer configuration.
@table @asis
GLX extension. @code{GLX_BAD_ATTRIBUTE} is returned if @var{attribute}
is not a valid GLX attribute.
-@end defun
+@end deftypefun
-@defun glXGetFBConfigs
+@deftypefun GLXFBConfig-* glXGetFBConfigs dpy screen nelements
List all GLX frame buffer configurations for a given screen.
@table @asis
the screen specified by @var{screen}. Use @code{glXGetFBConfigAttrib} to
obtain attribute values from a specific GLXFBConfig.
-@end defun
+@end deftypefun
-@defun glXGetProcAddress
+@deftypefun void(*)() glXGetProcAddress procName
Obtain a pointer to an OpenGL or GLX function.
@table @asis
link library exports a different set of functions than the runtime
library.
-@end defun
+@end deftypefun
-@defun glXGetSelectedEvent
+@deftypefun void glXGetSelectedEvent dpy draw event_mask
Returns GLX events that are selected for a window or a GLX pixel buffer.
@table @asis
@code{GLXBadDrawable} is generated if @var{draw} is not a valid window
or a valid GLX pixel buffer.
-@end defun
+@end deftypefun
-@defun glXGetVisualFromFBConfig
+@deftypefun XVisualInfo-* glXGetVisualFromFBConfig dpy config
Return visual that is associated with the frame buffer configuration.
@table @asis
Returns @code{NULL} if @var{config} is not a valid GLXFBConfig.
-@end defun
+@end deftypefun
-@defun glXImportContextEXT
+@deftypefun GLXContext glXImportContextEXT dpy contextID
Import another process's indirect rendering context..
@table @asis
@code{GLXBadContext} is generated if @var{contextID} does not refer to a
valid context.
-@end defun
+@end deftypefun
-@defun glXIntro
-Introduction to OpenGL in the X window system.
-
-@end defun
-
-@defun glXIsDirect
+@deftypefun Bool glXIsDirect dpy ctx
Indicate whether direct rendering is enabled.
@table @asis
@code{GLXBadContext} is generated if @var{ctx} is not a valid GLX
context.
-@end defun
+@end deftypefun
-@defun glXMakeContextCurrent
+@deftypefun Bool glXMakeContextCurrent display draw read ctx
Attach a GLX context to a GLX drawable.
@table @asis
@var{draw} or @var{read} is a GLXWindow or GLXPbuffer and @var{ctx} was
previously bound to a GLXPixmap.
-@end defun
+@end deftypefun
-@defun glXMakeCurrent
+@deftypefun Bool glXMakeCurrent dpy drawable ctx
Attach a GLX context to a window or a GLX pixmap.
@table @asis
ancillary buffers until @code{glXMakeCurrent} is called, only to find
that it has insufficient resources to complete the allocation.
-@end defun
+@end deftypefun
-@defun glXQueryContextInfoEXT
+@deftypefun int glXQueryContextInfoEXT dpy ctx attribute value
Query context information.
@table @asis
fred @code{GLX_BAD_CONTEXT} is returned if @var{attribute} is not a
valid context.
-@end defun
+@end deftypefun
-@defun glXQueryContext
+@deftypefun int glXQueryContext dpy ctx attribute value
Query context information.
@table @asis
@code{GLXBadContext} is generated if @var{ctx} does not refer to a valid
context.
-@end defun
+@end deftypefun
-@defun glXQueryDrawable
+@deftypefun int glXQueryDrawable dpy draw attribute value
Returns an attribute assoicated with a GLX drawable.
@table @asis
A @code{GLXBadDrawable} is generated if @var{draw} is not a valid
GLXDrawable.
-@end defun
+@end deftypefun
-@defun glXQueryExtensionsString
+@deftypefun const-char-* glXQueryExtensionsString dpy screen
Return list of supported extensions.
@table @asis
(The extension names themselves never contain spaces.) If there are no
extensions to GLX, then the empty string is returned.
-@end defun
+@end deftypefun
-@defun glXQueryExtension
+@deftypefun Bool glXQueryExtension dpy errorBase eventBase
Indicate whether the GLX extension is supported.
@table @asis
@var{errorBase} and @var{eventBase} do not return values if they are
specified as @code{NULL}.
-@end defun
+@end deftypefun
-@defun glXQueryServerString
+@deftypefun const-char-* glXQueryServerString dpy screen name
Return string describing the server.
@table @asis
strings is the same as for @code{glXGetClientString}. If @var{name} is
not set to a recognized value, @code{NULL} is returned.
-@end defun
+@end deftypefun
-@defun glXQueryVersion
+@deftypefun Bool glXQueryVersion dpy major minor
Return the version numbers of the GLX extension.
@table @asis
@var{major} and @var{minor} are not updated when @code{False} is
returned.
-@end defun
+@end deftypefun
-@defun glXSelectEvent
+@deftypefun void glXSelectEvent dpy draw event_mask
Select GLX events for a window or a GLX pixel buffer.
@table @asis
@code{GLXBadDrawable} is generated if @var{draw} is not a valid window
or a valid GLX pixel buffer.
-@end defun
+@end deftypefun
-@defun glXSwapBuffers
+@deftypefun void glXSwapBuffers dpy drawable
Exchange front and back buffers.
@table @asis
context of the calling thread, and @var{drawable} identifies a window
that is no longer valid.
-@end defun
+@end deftypefun
-@defun glXUseXFont
+@deftypefun void glXUseXFont font first count listBase
Create bitmap display lists from an X font.
@table @asis
the current context of the calling thread is a window, and that window
is no longer valid.
-@end defun
+@end deftypefun
-@defun glXWaitGL
+@deftypefun void glXWaitGL
Complete GL execution prior to subsequent X calls.
GL rendering calls made prior to @code{glXWaitGL} are guaranteed to be
the current context of the calling thread is a window, and that window
is no longer valid.
-@end defun
+@end deftypefun
-@defun glXWaitX
+@deftypefun void glXWaitX
Complete X execution prior to subsequent GL calls.
X rendering calls made prior to @code{glXWaitX} are guaranteed to be
the current context of the calling thread is a window, and that window
is no longer valid.
-@end defun
+@end deftypefun
@c %end of fragment