1 | /* gskglshadowlibraryprivate.h |
2 | * |
3 | * Copyright 2020 Christian Hergert <chergert@redhat.com> |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Lesser General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2.1 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public |
16 | * License along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | * |
18 | * SPDX-License-Identifier: LGPL-2.1-or-later |
19 | */ |
20 | |
21 | #ifndef __GSK_GL_SHADOW_LIBRARY_PRIVATE_H__ |
22 | #define __GSK_GL_SHADOW_LIBRARY_PRIVATE_H__ |
23 | |
24 | #include "gskgltexturelibraryprivate.h" |
25 | |
26 | G_BEGIN_DECLS |
27 | |
28 | #define GSK_TYPE_GL_SHADOW_LIBRARY (gsk_gl_shadow_library_get_type()) |
29 | |
30 | G_DECLARE_FINAL_TYPE (GskGLShadowLibrary, gsk_gl_shadow_library, GSK, GL_SHADOW_LIBRARY, GObject) |
31 | |
32 | GskGLShadowLibrary * gsk_gl_shadow_library_new (GskGLDriver *driver); |
33 | void gsk_gl_shadow_library_begin_frame (GskGLShadowLibrary *self); |
34 | guint gsk_gl_shadow_library_lookup (GskGLShadowLibrary *self, |
35 | const GskRoundedRect *outline, |
36 | float blur_radius); |
37 | void gsk_gl_shadow_library_insert (GskGLShadowLibrary *self, |
38 | const GskRoundedRect *outline, |
39 | float blur_radius, |
40 | guint texture_id); |
41 | |
42 | G_END_DECLS |
43 | |
44 | #endif /* __GSK_GL_SHADOW_LIBRARY_PRIVATE_H__ */ |
45 | |