Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkx11glcontext.h
Go to the documentation of this file.
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#pragma once
22
23#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gdk/x11/gdkx.h> can be included directly."
25#endif
26
27#include <gdk/gdk.h>
28
30
31#define GDK_TYPE_X11_GL_CONTEXT (gdk_x11_gl_context_get_type ())
32#define GDK_X11_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_X11_GL_CONTEXT, GdkX11GLContext))
33#define GDK_X11_IS_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_X11_GL_CONTEXT))
34
35typedef struct _GdkX11GLContext GdkX11GLContext;
36typedef struct _GdkX11GLContextClass GdkX11GLContextClass;
37
40
43 int *major,
44 int *minor);
47 int *major,
48 int *minor);
49
52
54
#define GDK_AVAILABLE_IN_4_4
#define GDK_AVAILABLE_IN_ALL
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
struct _GdkX11GLContext GdkX11GLContext
GDK_AVAILABLE_IN_4_4 gboolean gdk_x11_display_get_egl_version(GdkDisplay *display, int *major, int *minor)
GDK_AVAILABLE_IN_ALL GType gdk_x11_gl_context_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_4 gpointer gdk_x11_display_get_egl_display(GdkDisplay *display)
struct _GdkX11GLContextClass GdkX11GLContextClass
GDK_AVAILABLE_IN_ALL gboolean gdk_x11_display_get_glx_version(GdkDisplay *display, int *major, int *minor)
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109