Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkgltexture.h
Go to the documentation of this file.
1/* gdktexture.h
2 *
3 * Copyright 2016 Benjamin Otte
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gdk/gdk.h> can be included directly."
23#endif
24
25#include <gdk/gdktypes.h>
26#include <gdk/gdkglcontext.h>
27#include <gdk/gdktexture.h>
28
30
31#define GDK_TYPE_GL_TEXTURE (gdk_gl_texture_get_type ())
32
33#define GDK_GL_TEXTURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_GL_TEXTURE, GdkGLTexture))
34#define GDK_IS_GL_TEXTURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_GL_TEXTURE))
35
36typedef struct _GdkGLTexture GdkGLTexture;
37typedef struct _GdkGLTextureClass GdkGLTextureClass;
38
41
42GDK_DEPRECATED_IN_4_12_FOR(GdkGLTextureBuilder)
44 guint id,
45 int width,
46 int height,
47 GDestroyNotify destroy,
48 gpointer data);
49
52
54
56
#define GDK_DEPRECATED_IN_4_12_FOR(f)
#define GDK_AVAILABLE_IN_ALL
struct _GdkGLTextureClass GdkGLTextureClass
struct _GdkGLTexture GdkGLTexture
GDK_AVAILABLE_IN_ALL void gdk_gl_texture_release(GdkGLTexture *self)
GdkTexture * gdk_gl_texture_new(GdkGLContext *context, guint id, int width, int height, GDestroyNotify destroy, gpointer data)
GDK_AVAILABLE_IN_ALL GType gdk_gl_texture_get_type(void) G_GNUC_CONST
struct _GdkGLContext GdkGLContext
Definition gdktypes.h:98
struct _GdkTexture GdkTexture
Definition gdktypes.h:82
#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)
gsize GType
Definition gtype.h:427
void * gpointer
Definition gtypes.h:109
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140
unsigned int guint
Definition gtypes.h:61