libscratchcpp
A library for C++ based Scratch project players
Toggle main menu visibility
Loading...
Searching...
No Matches
igraphicseffect.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
3
#pragma once
4
5
#include <string>
6
7
#include "
global.h
"
8
9
namespace
libscratchcpp
10
{
11
13
class
LIBSCRATCHCPP_EXPORT
IGraphicsEffect
14
{
15
public
:
16
virtual
~IGraphicsEffect
() { }
17
19
virtual
std::string
name
()
const
= 0;
20
22
virtual
double
clamp
(
double
value)
const
= 0;
23
};
24
25
}
// namespace libscratchcpp
libscratchcpp::IGraphicsEffect
The IGraphicsEffects class is an interface for custom graphics effects.
Definition
igraphicseffect.h:14
libscratchcpp::IGraphicsEffect::~IGraphicsEffect
virtual ~IGraphicsEffect()
Definition
igraphicseffect.h:16
libscratchcpp::IGraphicsEffect::name
virtual std::string name() const =0
libscratchcpp::IGraphicsEffect::clamp
virtual double clamp(double value) const =0
global.h
LIBSCRATCHCPP_EXPORT
#define LIBSCRATCHCPP_EXPORT
Definition
global.h:17
libscratchcpp
The main namespace of the library.
Definition
asset.h:10
include
scratchcpp
igraphicseffect.h
Generated by
1.17.0