Debian Codegraph @

gdk/win32/gdkwin32glcontext.h

raw
1 /* GDK - The GIMP Drawing Kit
2 *
3 * gdkglcontext-win32.c: Win32 specific OpenGL wrappers
4 *
5 * Copyright © 2014 Chun-wei Fan
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_WIN32_GL_CONTEXT_H__
22 #define __GDK_WIN32_GL_CONTEXT_H__
23
24 #if !defined (__GDKWIN32_H_INSIDE__) && !defined (GDK_COMPILATION)
25 #error "Only <gdk/gdkwin32.h> can be included directly."
26 #endif
27
28 #include <gdk/gdk.h>
29
30 G_BEGIN_DECLS
31
32 #define GDK_TYPE_WIN32_GL_CONTEXT (gdk_win32_gl_context_get_type ())
33 #define GDK_WIN32_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WIN32_GL_CONTEXT, GdkWin32GLContext))
34 #define GDK_WIN32_IS_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WIN32_GL_CONTEXT))
35
36 typedef struct _GdkWin32GLContext GdkWin32GLContext;
37 typedef struct _GdkWin32GLContextClass GdkWin32GLContextClass;
38
39 GDK_AVAILABLE_IN_3_16
40 GType gdk_win32_gl_context_get_type (void) G_GNUC_CONST;
41
42 GDK_AVAILABLE_IN_3_16
43 gboolean gdk_win32_display_get_wgl_version (GdkDisplay *display,
44 gint *major,
45 gint *minor);
46
47 G_END_DECLS
48
49 #endif /* __GDK_WIN32_GL_CONTEXT_H__ */