mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
92eb845482
Add a new function to TextureBuilder that takes a GLsync that requires internal code to wait on before using the texture. Somewhat sneakily, we don't take the sync if syncs are not supported by the current GL context. As public API has no code to query the sync for the destroy notify, this is fine and it means we don't have to do the check every time we want to call gdk_texture_get_sync() internally.
22 lines
757 B
C
22 lines
757 B
C
#pragma once
|
|
|
|
#include "gdkgltexture.h"
|
|
|
|
#include "gdkgltexturebuilder.h"
|
|
#include "gdktextureprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
GdkTexture * gdk_gl_texture_new_from_builder (GdkGLTextureBuilder *builder,
|
|
GDestroyNotify destroy,
|
|
gpointer data);
|
|
|
|
|
|
GdkGLContext * gdk_gl_texture_get_context (GdkGLTexture *self);
|
|
guint gdk_gl_texture_get_id (GdkGLTexture *self);
|
|
gboolean gdk_gl_texture_has_mipmap (GdkGLTexture *self);
|
|
gpointer gdk_gl_texture_get_sync (GdkGLTexture *self);
|
|
|
|
G_END_DECLS
|
|
|