Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkglcontext.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 *
3 * gdkglcontext.h: GL context abstraction
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 (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gdk/gdk.h> can be included directly."
25#endif
26
27#include <gdk/gdktypes.h>
28
30
31#define GDK_TYPE_GL_CONTEXT (gdk_gl_context_get_type ())
32#define GDK_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_GL_CONTEXT, GdkGLContext))
33#define GDK_IS_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_GL_CONTEXT))
34
35#define GDK_GL_ERROR (gdk_gl_error_quark ())
36
39
42
51 int *major,
52 int *minor);
57 GdkGLContext *other);
58
61 int major,
62 int minor);
65 int *major,
66 int *minor);
69 gboolean enabled);
74 gboolean compatible);
79 GdkGLAPI apis);
86 int use_es);
89
92 GError **error);
93
100
102
104
#define GDK_AVAILABLE_IN_4_4
#define GDK_DEPRECATED_IN_4_6_FOR(f)
#define GDK_AVAILABLE_IN_4_6
#define GDK_AVAILABLE_IN_ALL
#define GDK_DEPRECATED_IN_4_4_FOR(f)
GdkGLAPI
Definition gdkenums.h:46
GDK_AVAILABLE_IN_ALL void gdk_gl_context_set_required_version(GdkGLContext *context, int major, int minor)
GdkGLContext * gdk_gl_context_get_shared_context(GdkGLContext *context)
GDK_AVAILABLE_IN_ALL void gdk_gl_context_get_required_version(GdkGLContext *context, int *major, int *minor)
GDK_AVAILABLE_IN_ALL void gdk_gl_context_set_forward_compatible(GdkGLContext *context, gboolean compatible)
GDK_AVAILABLE_IN_ALL gboolean gdk_gl_context_get_debug_enabled(GdkGLContext *context)
GDK_AVAILABLE_IN_4_4 gboolean gdk_gl_context_is_shared(GdkGLContext *self, GdkGLContext *other)
GDK_AVAILABLE_IN_4_6 void gdk_gl_context_set_allowed_apis(GdkGLContext *self, GdkGLAPI apis)
GDK_AVAILABLE_IN_ALL gboolean gdk_gl_context_realize(GdkGLContext *context, GError **error)
void gdk_gl_context_set_use_es(GdkGLContext *context, int use_es)
GDK_AVAILABLE_IN_ALL gboolean gdk_gl_context_get_use_es(GdkGLContext *context)
GDK_AVAILABLE_IN_ALL void gdk_gl_context_make_current(GdkGLContext *context)
GDK_AVAILABLE_IN_ALL GdkDisplay * gdk_gl_context_get_display(GdkGLContext *context)
GDK_AVAILABLE_IN_ALL void gdk_gl_context_get_version(GdkGLContext *context, int *major, int *minor)
GDK_AVAILABLE_IN_ALL void gdk_gl_context_set_debug_enabled(GdkGLContext *context, gboolean enabled)
GDK_AVAILABLE_IN_ALL GdkSurface * gdk_gl_context_get_surface(GdkGLContext *context)
GDK_AVAILABLE_IN_4_6 GdkGLAPI gdk_gl_context_get_allowed_apis(GdkGLContext *self)
GDK_AVAILABLE_IN_ALL GType gdk_gl_context_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GQuark gdk_gl_error_quark(void)
GDK_AVAILABLE_IN_ALL gboolean gdk_gl_context_is_legacy(GdkGLContext *context)
GDK_AVAILABLE_IN_ALL gboolean gdk_gl_context_get_forward_compatible(GdkGLContext *context)
GDK_AVAILABLE_IN_ALL void gdk_gl_context_clear_current(void)
GDK_AVAILABLE_IN_ALL GdkGLContext * gdk_gl_context_get_current(void)
GDK_AVAILABLE_IN_4_6 GdkGLAPI gdk_gl_context_get_api(GdkGLContext *self)
struct _GdkGLContext GdkGLContext
Definition gdktypes.h:98
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
struct _GdkSurface GdkSurface
Definition gdktypes.h:91
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
G_BEGIN_DECLS typedef guint32 GQuark
Definition gquark.h:38
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
static void error(LoadState *S, const char *why)