![]() | ![]() | ![]() | GtkGLExt Reference Manual | ![]() |
---|
X Window System Interaction — Internal X-related functions
#include <gdk/x11/gdkglx.h> gboolean gdk_x11_gl_query_glx_extension (GdkGLConfig *glconfig, const char *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, const char *extension);
Determines whether a given GLX extension is supported.
glconfig : | a GdkGLConfig. |
extension : | 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);
xvisualid : | |
Returns : |
GdkGLConfig* gdk_x11_gl_config_new_from_visualid_for_screen (GdkScreen *screen, VisualID xvisualid);
screen : | |
xvisualid : | |
Returns : |
Display* gdk_x11_gl_config_get_xdisplay (GdkGLConfig *glconfig);
Get X Display.
glconfig : | a GdkGLConfig. |
Returns : | pointer to the Display. |
int gdk_x11_gl_config_get_screen_number (GdkGLConfig *glconfig);
Get X screen number.
glconfig : | a GdkGLConfig. |
Returns : | the screen number. |
XVisualInfo* gdk_x11_gl_config_get_xvinfo (GdkGLConfig *glconfig);
Get XVisualInfo data.
glconfig : | 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.
glconfig : | a GdkGLConfig. |
Returns : | TRUE if Mesa GLX, FALSE otherwise. |
GdkGLContext* gdk_x11_gl_context_foreign_new (GdkGLConfig *glconfig, GdkGLContext *share_list, GLXContext glxcontext);
glconfig : | |
share_list : | |
glxcontext : | |
Returns : |
GLXContext gdk_x11_gl_context_get_glxcontext (GdkGLContext *glcontext);
Get GLXContext.
glcontext : | a GdkGLContext. |
Returns : | the GLXContext. |
GLXPixmap gdk_x11_gl_pixmap_get_glxpixmap (GdkGLPixmap *glpixmap);
Get GLXPixmap.
glpixmap : | a GdkGLPixmap. |
Returns : | the GLXPixmap. |
Window gdk_x11_gl_window_get_glxwindow (GdkGLWindow *glwindow);
Get X Window.
glwindow : | a GdkGLWindow. |
Returns : | the Window. |
#define GDK_GL_CONFIG_XDISPLAY(glconfig)
Get X Display.
glconfig : | a GdkGLConfig. |
Returns : | pointer to the Display. |
#define GDK_GL_CONFIG_SCREEN_XNUMBER(glconfig)
Get X screen number.
glconfig : | a GdkGLConfig. |
Returns : | the screen number. |
#define GDK_GL_CONFIG_XVINFO(glconfig)
Get XVisualInfo data.
glconfig : | a GdkGLConfig. |
Returns : | pointer to the XVisualInfo data. |
#define GDK_GL_CONFIG_XCOLORMAP(glconfig)
Get X Colormap.
glconfig : | a GdkGLConfig. |
Returns : | the Colormap. |
#define GDK_GL_CONTEXT_GLXCONTEXT(glcontext)
Get GLXContext.
glcontext : | a GdkGLContext. |
Returns : | the GLXContext. |
#define GDK_GL_PIXMAP_GLXPIXMAP(glpixmap)
Get GLXPixmap.
glpixmap : | a GdkGLPixmap. |
Returns : | the GLXPixmap. |
#define GDK_GL_WINDOW_GLXWINDOW(glwindow)
Get X Window.
glwindow : | a GdkGLWindow. |
Returns : | the Window. |
<< Tokens | Version Information >> |