Added Source:setRelativePosition and Source:hasRelativePosition, if enabled the Source's position will always be relative to the listener instead of absolute.

This commit is contained in:
Alex Szpakowski
2013-10-11 02:25:48 -03:00
parent 2710c6c488
commit 7f3cd7f044
7 changed files with 54 additions and 0 deletions
+3
View File
@@ -60,6 +60,8 @@ public:
virtual void getVelocity(float *v) const;
virtual void setDirection(float *v);
virtual void getDirection(float *v) const;
virtual void setRelativePosition(bool relative);
virtual bool hasRelativePosition() const;
void setLooping(bool looping);
bool isLooping() const;
bool isStatic() const;
@@ -78,6 +80,7 @@ private:
float pitch;
float volume;
bool relativePosition;
bool looping;
float minVolume;
float maxVolume;