| 1 | /* GDK - The GIMP Drawing Kit |
| 2 | * |
| 3 | * gdkglcontext-x11.c: X11 specific OpenGL wrappers |
| 4 | * |
| 5 | * Copyright © 2014 Emmanuele Bassi |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Library General Public |
| 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Library General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Library General Public |
| 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #ifndef __GDK_X11_GL_CONTEXT_H__ |
| 22 | #define __GDK_X11_GL_CONTEXT_H__ |
| 23 | |
| 24 | #if !defined (__GDKX_H_INSIDE__) && !defined (GDK_COMPILATION) |
| 25 | #error "Only <gdk/gdkx.h> can be included directly." |
| 26 | #endif |
| 27 | |
| 28 | #include <gdk/gdk.h> |
| 29 | |
| 30 | G_BEGIN_DECLS |
| 31 | |
| 32 | #define GDK_TYPE_X11_GL_CONTEXT (gdk_x11_gl_context_get_type ()) |
| 33 | #define GDK_X11_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_X11_GL_CONTEXT, GdkX11GLContext)) |
| 34 | #define GDK_X11_IS_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_X11_GL_CONTEXT)) |
| 35 | |
| 36 | typedef struct _GdkX11GLContext GdkX11GLContext; |
| 37 | typedef struct _GdkX11GLContextClass GdkX11GLContextClass; |
| 38 | |
| 39 | GDK_AVAILABLE_IN_3_16 |
| 40 | GType gdk_x11_gl_context_get_type (void) G_GNUC_CONST; |
| 41 | |
| 42 | GDK_AVAILABLE_IN_3_16 |
| 43 | gboolean gdk_x11_display_get_glx_version (GdkDisplay *display, |
| 44 | gint *major, |
| 45 | gint *minor); |
| 46 | |
| 47 | G_END_DECLS |
| 48 | |
| 49 | #endif /* __GDK_X11_GL_CONTEXT_H__ */ |
| 50 | |