SoundSource3D.pkg 650 B

1234567891011121314151617181920
  1. $#include "SoundSource3D.h"
  2. class SoundSource3D : public SoundSource
  3. {
  4. void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor);
  5. void SetNearDistance(float distance);
  6. void SetFarDistance(float distance);
  7. void SetRolloffFactor(float factor);
  8. void CalculateAttenuation();
  9. float GetNearDistance() const;
  10. float GetFarDistance() const;
  11. float RollAngleoffFactor() const;
  12. tolua_property__get_set float nearDistance;
  13. tolua_property__get_set float farDistance;
  14. tolua_property__get_set float rolloffFactor;
  15. };
  16. $#define GetRolloffFactor RollAngleoffFactor