mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
d8db673fb7
Code was inspired mainly by https://madebyevan.com/shaders/fast-rounded-rectangle-shadows/ and https://pcwalton.github.io/_posts/2015-12-21-drawing-css-box-shadows-in-webrender.html So far the results aren't cached, that's the task of future commits.
24 lines
1.3 KiB
C
24 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include "gskgputypesprivate.h"
|
|
#include "gsktypes.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_box_shadow_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
gboolean inset,
|
|
const graphene_rect_t *bounds,
|
|
const GskRoundedRect *outline,
|
|
const graphene_point_t *shadow_offset,
|
|
float spread,
|
|
float blur_radius,
|
|
const graphene_point_t *offset,
|
|
const GdkRGBA *color);
|
|
|
|
|
|
G_END_DECLS
|
|
|