mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
Named Effect parameters added. Unsupported effects disabled.
Unnamed parameter Effect setting is no longer functional. --HG-- branch : minor
This commit is contained in:
@@ -66,16 +66,18 @@ public:
|
||||
virtual ~Effect();
|
||||
virtual Effect *clone();
|
||||
ALuint getEffect() const;
|
||||
virtual bool setParams(Type type, const std::vector<float> ¶ms);
|
||||
virtual const std::vector<float> &getParams() const;
|
||||
virtual bool setParams(const std::map<Parameter, float> ¶ms);
|
||||
virtual const std::map<Parameter, float> &getParams() const;
|
||||
|
||||
private:
|
||||
bool generateEffect();
|
||||
void deleteEffect();
|
||||
float clampf(float val, float min, float max, float def);
|
||||
float getValue(Parameter in, float def) const;
|
||||
int getValue(Parameter in, int def) const;
|
||||
|
||||
ALuint effect = AL_EFFECT_NULL;
|
||||
std::vector<float> params;
|
||||
static std::map<Phoneme, ALint> phonemeMap;
|
||||
std::map<Parameter, float> params;
|
||||
//static std::map<Phoneme, ALint> phonemeMap;
|
||||
};
|
||||
|
||||
} //openal
|
||||
|
||||
Reference in New Issue
Block a user