mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Renamed Source:setRelativePosition and Source:hasRelativePosition to Source:setRelative and Source:isRelative. Updated changelog.
This commit is contained in:
@@ -149,14 +149,14 @@ void Source::getCone(float &innerAngle, float &outerAngle, float &outerVolume) c
|
||||
outerVolume = coneOuterVolume;
|
||||
}
|
||||
|
||||
void Source::setRelativePosition(bool relative)
|
||||
void Source::setRelative(bool enable)
|
||||
{
|
||||
relativePosition = relative;
|
||||
relative = enable;
|
||||
}
|
||||
|
||||
bool Source::hasRelativePosition() const
|
||||
bool Source::isRelative() const
|
||||
{
|
||||
return relativePosition;
|
||||
return relative;
|
||||
}
|
||||
|
||||
void Source::setLooping(bool looping)
|
||||
|
||||
@@ -62,8 +62,8 @@ public:
|
||||
virtual void getDirection(float *v) const;
|
||||
virtual void setCone(float innerAngle, float outerAngle, float outerVolume);
|
||||
virtual void getCone(float &innerAngle, float &outerAngle, float &outerVolume) const;
|
||||
virtual void setRelativePosition(bool relative);
|
||||
virtual bool hasRelativePosition() const;
|
||||
virtual void setRelative(bool enable);
|
||||
virtual bool isRelative() const;
|
||||
void setLooping(bool looping);
|
||||
bool isLooping() const;
|
||||
bool isStatic() const;
|
||||
@@ -86,7 +86,7 @@ private:
|
||||
float coneInnerAngle;
|
||||
float coneOuterAngle;
|
||||
float coneOuterVolume;
|
||||
bool relativePosition;
|
||||
bool relative;
|
||||
bool looping;
|
||||
float minVolume;
|
||||
float maxVolume;
|
||||
|
||||
Reference in New Issue
Block a user