diff options
author | Benjamin Otte <otte@redhat.com> | 2020-12-03 06:02:18 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-12-03 13:07:17 +0100 |
commit | 2c1bd399d25e41fa6987df5f8c731b034568e0cc (patch) | |
tree | 10d4715a76f59e258e30207ad6333f82af3aa0a3 /gsk/gl/opbuffer.h | |
parent | fac5fba0dcc6babd26cdecd39004eec249618675 (diff) | |
download | gtk+-wip/otte/conic.tar.gz |
glrenderer: Implement a shader for conic gradientswip/otte/conic
Diffstat (limited to 'gsk/gl/opbuffer.h')
-rw-r--r-- | gsk/gl/opbuffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gsk/gl/opbuffer.h b/gsk/gl/opbuffer.h index a2236dd7a1..08f48b7c5f 100644 --- a/gsk/gl/opbuffer.h +++ b/gsk/gl/opbuffer.h @@ -41,6 +41,7 @@ typedef enum OP_CHANGE_BLEND = 27, OP_CHANGE_GL_SHADER_ARGS = 28, OP_CHANGE_EXTRA_SOURCE_TEXTURE = 29, + OP_CHANGE_CONIC_GRADIENT = 30, OP_LAST } OpKind; @@ -158,6 +159,14 @@ typedef struct typedef struct { + ColorStopUniformValue color_stops; + IntUniformValue n_color_stops; + float center[2]; + float rotation; +} OpConicGradient; + +typedef struct +{ const graphene_matrix_t *matrix; Vec4UniformValue offset; } OpColorMatrix; |