37 return _textureVelocity;
43 _textureVelocity = velocity <= MinVelocity ? MinVelocity : velocity >=
MaxVelocity ?
MaxVelocity : velocity;
55 TextureType lower = TextureType::ClickNormal;
56 TextureType upper = TextureType::DoubleSidedTape;
57 _textureType = type <= lower ? lower : type >= upper ? upper : type;
78 TextureType _textureType;
79 float _textureVelocity;
Temperature value to be applied to an effect.
Definition: WeArtTexture.h:9
static constexpr float DefaultVolume
Definition: WeArtTexture.h:24
static constexpr float MinVelocity
Definition: WeArtTexture.h:29
static constexpr float MinVolume
Definition: WeArtTexture.h:25
float textureVelocity() const
Gets the texture velocity.
Definition: WeArtTexture.h:36
static constexpr float DefaultVelocity
Definition: WeArtTexture.h:28
TextureType textureType() const
Texture type getter.
Definition: WeArtTexture.h:48
WeArtTexture()
Definition: WeArtTexture.h:11
WeArtTexture(bool active, TextureType type, float velocity, float textureVolume)
Definition: WeArtTexture.h:16
static constexpr float MaxVelocity
Definition: WeArtTexture.h:30
void textureType(TextureType type)
Texture type setter.
Definition: WeArtTexture.h:54
float volume() const
Volume value getter.
Definition: WeArtTexture.h:62
bool active
Definition: WeArtTexture.h:32
void textureVelocity(float velocity)
Sets the texture velocity (speed at which the vibration is emitted, between 0 and 0....
Definition: WeArtTexture.h:42
void volume(float v)
Volume value setter.
Definition: WeArtTexture.h:68
static constexpr TextureType DefaultTextureType
Definition: WeArtTexture.h:22
static constexpr float MaxVolume
Definition: WeArtTexture.h:26
bool operator==(const WeArtTexture &other) const
Definition: WeArtTexture.h:72