gltexture: Improve the docs a bit

This commit is contained in:
Matthias Clasen
2022-05-09 08:19:44 -04:00
parent 007777d891
commit e9d54b4938
2 changed files with 9 additions and 3 deletions

View File

@@ -442,6 +442,10 @@ gdk_gl_texture_determine_format (GdkGLTexture *self)
* which will happen when the GdkTexture object is finalized, or due to
* an explicit call of [method@Gdk.GLTexture.release].
*
* The texture data is assumed to be premultiplied, not flipped, and in the
* sRGB colorspace, see [ctor@Gdk.GLTexture.new_with_color_profile] to override
* this.
*
* Return value: (transfer full) (type GdkGLTexture): A newly-created
* `GdkTexture`
*/
@@ -472,7 +476,8 @@ gdk_gl_texture_new (GdkGLContext *context,
* are released
* @data: data that gets passed to @destroy
*
* Creates a new texture for an existing GL texture with a given color profile.
* Creates a new texture for an existing GL texture with a given color profile
* and flags.
*
* Note that the GL texture must not be modified until @destroy is called,
* which will happen when the GdkTexture object is finalized, or due to

View File

@@ -51,8 +51,9 @@ GdkTexture * gdk_gl_texture_new (GdkGLContext
/**
* GdkGLTextureFlags:
* @GDK_GL_TEXTURE_FLAGS_PREMULTIPLIED: The alpha in the data is not premultiplied
* @GDK_GL_TEXTURE_FLAGS_FLIPPED: The data has the origin at the bottom
* @GDK_GL_TEXTURE_FLAGS_PREMULTIPLIED: The alpha in the data is premultiplied
* @GDK_GL_TEXTURE_FLAGS_FLIPPED: The data has the origin at the bottom (this is usually
* th case for textures that are produced by GL rendering)
*
* Flags that describe the content of a GL texture.
*/