mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
69c8278558
This is mainly copy/paste, so now this almost identical gradient code exists 3 times. That's kinda suboptimal.
26 lines
1.3 KiB
C
26 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include "gskgpushaderopprivate.h"
|
|
|
|
#include "gskrendernode.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_radial_gradient_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
gboolean repeating,
|
|
const graphene_rect_t *rect,
|
|
const graphene_point_t *center,
|
|
const graphene_point_t *radius,
|
|
float start,
|
|
float end,
|
|
const graphene_point_t *offset,
|
|
const GskColorStop *stops,
|
|
gsize n_stops);
|
|
|
|
|
|
G_END_DECLS
|
|
|