X Window System InteractionX Window System Interaction — Internal X-related functions |
#include <gdk/x11/gdkglx.h>gboolean gdk_x11_gl_query_glx_extension (GdkGLConfig *glconfig, constchar *extension); GdkGLConfig* gdk_x11_gl_config_new_from_visualid (VisualID xvisualid); GdkGLConfig* gdk_x11_gl_config_new_from_visualid_for_screen (GdkScreen *screen,VisualID xvisualid);Display * gdk_x11_gl_config_get_xdisplay (GdkGLConfig *glconfig);int gdk_x11_gl_config_get_screen_number (GdkGLConfig *glconfig);XVisualInfo * gdk_x11_gl_config_get_xvinfo (GdkGLConfig *glconfig);gboolean gdk_x11_gl_config_is_mesa_glx (GdkGLConfig *glconfig); GdkGLContext* gdk_x11_gl_context_foreign_new (GdkGLConfig *glconfig, GdkGLContext *share_list,GLXContext glxcontext);GLXContext gdk_x11_gl_context_get_glxcontext (GdkGLContext *glcontext);GLXPixmap gdk_x11_gl_pixmap_get_glxpixmap (GdkGLPixmap *glpixmap);Window gdk_x11_gl_window_get_glxwindow (GdkGLWindow *glwindow); #define GDK_GL_CONFIG_XDISPLAY (glconfig) #define GDK_GL_CONFIG_SCREEN_XNUMBER (glconfig) #define GDK_GL_CONFIG_XVINFO (glconfig) #define GDK_GL_CONFIG_XCOLORMAP (glconfig) #define GDK_GL_CONTEXT_GLXCONTEXT (glcontext) #define GDK_GL_PIXMAP_GLXPIXMAP (glpixmap) #define GDK_GL_WINDOW_GLXWINDOW (glwindow)
gboolean gdk_x11_gl_query_glx_extension (GdkGLConfig *glconfig, constchar *extension);
Determines whether a given GLX extension is supported.
|
a GdkGLConfig. |
|
name of GLX extension. |
Returns : |
TRUE if the GLX extension is supported, FALSE if not supported. |
GdkGLConfig* gdk_x11_gl_config_new_from_visualid (VisualID xvisualid);
Creates GdkGLConfig from given visual ID that specifies the OpenGL-capable visual.
|
visual ID. |
Returns : |
the new GdkGLConfig. |
GdkGLConfig* gdk_x11_gl_config_new_from_visualid_for_screen (GdkScreen *screen,VisualID xvisualid);
Creates GdkGLConfig from given visual ID that specifies the OpenGL-capable visual.
|
target screen. |
|
visual ID. |
Returns : |
the new GdkGLConfig. |
Display * gdk_x11_gl_config_get_xdisplay (GdkGLConfig *glconfig);
Gets X Display.
|
a GdkGLConfig. |
Returns : |
pointer to the Display. |
int gdk_x11_gl_config_get_screen_number (GdkGLConfig *glconfig);
Gets X screen number.
|
a GdkGLConfig. |
Returns : |
the screen number. |
XVisualInfo * gdk_x11_gl_config_get_xvinfo (GdkGLConfig *glconfig);
Gets XVisualInfo data.
|
a GdkGLConfig. |
Returns : |
pointer to the XVisualInfo data. |
gboolean gdk_x11_gl_config_is_mesa_glx (GdkGLConfig *glconfig);
Returns whether the server's GLX entension is Mesa.
|
a GdkGLConfig. |
Returns : |
TRUE if Mesa GLX, FALSE otherwise. |
GdkGLContext* gdk_x11_gl_context_foreign_new (GdkGLConfig *glconfig, GdkGLContext *share_list,GLXContext glxcontext);
Creates GdkGLContext from existing GLXContext.
|
GdkGLConfig that represents the visual the GLXContext uses. |
|
the GdkGLContext which shares display lists with the GLXContext, or NULL. |
|
exsisting GLXContext. |
Returns : |
the newly-created GdkGLContext wrapper. |
GLXContext gdk_x11_gl_context_get_glxcontext (GdkGLContext *glcontext);
Gets GLXContext.
|
a GdkGLContext. |
Returns : |
the GLXContext. |
GLXPixmap gdk_x11_gl_pixmap_get_glxpixmap (GdkGLPixmap *glpixmap);
Gets GLXPixmap.
|
a GdkGLPixmap. |
Returns : |
the GLXPixmap. |
Window gdk_x11_gl_window_get_glxwindow (GdkGLWindow *glwindow);
Gets X Window.
|
a GdkGLWindow. |
Returns : |
the Window. |
#define GDK_GL_CONFIG_XDISPLAY(glconfig)
Gets X Display.
|
a GdkGLConfig. |
Returns : |
pointer to the Display. |
#define GDK_GL_CONFIG_SCREEN_XNUMBER(glconfig)
Gets X screen number.
|
a GdkGLConfig. |
Returns : |
the screen number. |
#define GDK_GL_CONFIG_XVINFO(glconfig)
Gets XVisualInfo data.
|
a GdkGLConfig. |
Returns : |
pointer to the XVisualInfo data. |
#define GDK_GL_CONFIG_XCOLORMAP(glconfig)
Gets X Colormap.
|
a GdkGLConfig. |
Returns : |
the Colormap. |
#define GDK_GL_CONTEXT_GLXCONTEXT(glcontext)
Gets GLXContext.
|
a GdkGLContext. |
Returns : |
the GLXContext. |
#define GDK_GL_PIXMAP_GLXPIXMAP(glpixmap)
Gets GLXPixmap.
|
a GdkGLPixmap. |
Returns : |
the GLXPixmap. |
#define GDK_GL_WINDOW_GLXWINDOW(glwindow)
Gets X Window.
|
a GdkGLWindow. |
Returns : |
the Window. |