summaryrefslogtreecommitdiff
path: root/gdk/gdkmemorytexture.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-09-24 15:01:51 +0200
committerAlexander Larsson <alexl@redhat.com>2020-09-25 09:31:43 +0200
commit8e59cdabac9596acd2d2bc502ae583f321f4f4d1 (patch)
treef516d9d064559e5431b56213f59bea8131a0bc91 /gdk/gdkmemorytexture.h
parent88b709d5ec6012c1e877a497551e52543297c2f0 (diff)
downloadgtk+-8e59cdabac9596acd2d2bc502ae583f321f4f4d1.tar.gz
Add GDK_MEMORY_R8G8B8A8_PREMULTIPLIED
This is the default OpenGL format, and in fact the only pixel format that GLES supports uploading as. Actually, the premultiplied part is really just about how we use the textures, but all textures in GTK are premultiplied.
Diffstat (limited to 'gdk/gdkmemorytexture.h')
-rw-r--r--gdk/gdkmemorytexture.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkmemorytexture.h b/gdk/gdkmemorytexture.h
index eea2fda324..b24e8c6796 100644
--- a/gdk/gdkmemorytexture.h
+++ b/gdk/gdkmemorytexture.h
@@ -34,6 +34,8 @@ G_BEGIN_DECLS
* The color values are premultiplied with the alpha value.
* @GDK_MEMORY_A8R8G8B8_PREMULTIPLIED: 4 bytes; for alpha, red, green, blue.
* The color values are premultiplied with the alpha value.
+ * @GDK_MEMORY_R8G8B8A8_PREMULTIPLIED: 4 bytes; for red, green, blue, alpha
+ * The color values are premultiplied with the alpha value.
* @GDK_MEMORY_B8G8R8A8: 4 bytes; for blue, green, red, alpha.
* @GDK_MEMORY_A8R8G8B8: 4 bytes; for alpha, red, green, blue.
* @GDK_MEMORY_R8G8B8A8: 4 bytes; for red, green, blue, alpha.
@@ -58,6 +60,7 @@ G_BEGIN_DECLS
typedef enum {
GDK_MEMORY_B8G8R8A8_PREMULTIPLIED,
GDK_MEMORY_A8R8G8B8_PREMULTIPLIED,
+ GDK_MEMORY_R8G8B8A8_PREMULTIPLIED,
GDK_MEMORY_B8G8R8A8,
GDK_MEMORY_A8R8G8B8,
GDK_MEMORY_R8G8B8A8,