1 /* GdkGLExt - OpenGL Extension to GDK 2 * Copyright (C) 2002-2004 Naofumi Yasufuku 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 17 */ 18 19 #ifndef __GDK_GL_PRIVATE_X11_H__ 20 #define __GDK_GL_PRIVATE_X11_H__ 21 22 #include <gdk/gdkprivate.h> 23 24 #include <gdk/gdkglprivate.h> 25 26 G_BEGIN_DECLS 27 28 void _gdk_x11_gl_print_glx_info (Display *xdisplay, 29 int screen_num); 30 31 GdkGLContext *_gdk_x11_gl_context_new (GdkGLDrawable *gldrawable, 32 GdkGLContext *share_list, 33 gboolean direct, 34 int render_type); 35 36 void _gdk_gl_context_set_gl_drawable (GdkGLContext *glcontext, 37 GdkGLDrawable *gldrawable); 38 /* currently unused. */ 39 /* 40 void _gdk_gl_context_set_gl_drawable_read (GdkGLContext *glcontext, 41 GdkGLDrawable *gldrawable_read); 42 */ 43 44 void _gdk_gl_drawable_impl_x11_wait_gl (GdkGLDrawable *gldrawable); 45 void _gdk_gl_drawable_impl_x11_wait_gdk (GdkGLDrawable *gldrawable); 46 47 #define GDK_GL_CONTEXT_IS_DESTROYED(glcontext) \ 48 ( ((GdkGLContextImplX11 *) (glcontext))->is_destroyed ) 49 50 #define GDK_GL_PIXMAP_IS_DESTROYED(glpixmap) \ 51 ( ((GdkGLPixmapImplX11 *) (glpixmap))->is_destroyed ) 52 53 #define GDK_GL_WINDOW_IS_DESTROYED(glwindow) \ 54 ( ((GdkGLWindowImplX11 *) (glwindow))->is_destroyed ) 55 56 G_END_DECLS 57 58 #endif /* __GDK_GL_PRIVATE_X11_H__ */ 59