mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
0b4b341e6c
The shader already operates on floating point sigma, and there's just no reason for us to force it to be an unsigned integer. It's still important that sigma must be positive though. Make sigma a float, and make sure it's a positive number. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1646>
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2020 Endless OS Foundation, LLC
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef CLUTTER_BLUR_PRIVATE_H
|
|
#define CLUTTER_BLUR_PRIVATE_H
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include <cogl/cogl.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _ClutterBlur ClutterBlur;
|
|
|
|
ClutterBlur * clutter_blur_new (CoglTexture *texture,
|
|
float sigma);
|
|
|
|
void clutter_blur_apply (ClutterBlur *blur);
|
|
|
|
CoglTexture * clutter_blur_get_texture (ClutterBlur *blur);
|
|
|
|
void clutter_blur_free (ClutterBlur *blur);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* CLUTTER_BLUR_PRIVATE_H */
|