SoundSource3D.pkg 961 B

123456789101112131415161718192021222324252627
  1. $#include "Audio/SoundSource3D.h"
  2. class SoundSource3D : public SoundSource
  3. {
  4. void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor);
  5. void SetAngleAttenuation(float innerAngle, float outerAngle);
  6. void SetNearDistance(float distance);
  7. void SetFarDistance(float distance);
  8. void SetInnerAngle(float angle);
  9. void SetOuterAngle(float angle);
  10. void SetRolloffFactor(float factor);
  11. void CalculateAttenuation();
  12. float GetNearDistance() const;
  13. float GetFarDistance() const;
  14. float GetInnerAngle() const;
  15. float GetOuterAngle() const;
  16. float RollAngleoffFactor() const;
  17. tolua_property__get_set float nearDistance;
  18. tolua_property__get_set float farDistance;
  19. tolua_property__get_set float innerAngle;
  20. tolua_property__get_set float outerAngle;
  21. tolua_property__get_set float rolloffFactor;
  22. };
  23. $#define GetRolloffFactor RollAngleoffFactor