From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a03012.html | 149 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 docs/doxygen/nel/a03012.html (limited to 'docs/doxygen/nel/a03012.html') diff --git a/docs/doxygen/nel/a03012.html b/docs/doxygen/nel/a03012.html new file mode 100644 index 00000000..9b7b5cff --- /dev/null +++ b/docs/doxygen/nel/a03012.html @@ -0,0 +1,149 @@ + + +NeL: NLSOUND::CompareSources struct Reference + + + +
+

NLSOUND::CompareSources Struct Reference

+ + + + + + + + + +

Public Member Functions

 CompareSources (const CVector &pos)
bool operator() (const CSimpleSource *s1, const CSimpleSource *s2)

Data Fields

const CVector & _Pos
+

Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NLSOUND::CompareSources::CompareSources const CVector &  pos  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1943 of file audio_mixer_user.cpp. +

+

01943 : _Pos(pos) {}
+
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool NLSOUND::CompareSources::operator() const CSimpleSource s1,
const CSimpleSource s2
[inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1946 of file audio_mixer_user.cpp. +

+References NLSOUND::CSourceCommon::getPos(), and NLSOUND::CSourceCommon::getPriority(). +

+

01947         {
+01948                 if (s1->getPriority() < s2->getPriority())
+01949                 {
+01950                         return true;
+01951                 }
+01952                 else if (s1->getPriority() == s2->getPriority())
+01953                 {
+01954                         // Equal priority, test distances to the listener
+01955                         const CVector &src1pos = s1->getPos();
+01956                         const CVector &src2pos = s2->getPos();;
+01957                         return ( (src1pos-_Pos).sqrnorm() < (src2pos-_Pos).sqrnorm() );
+01958                 }
+01959                 else
+01960                 {
+01961                         return false;
+01962                 }
+01963         }
+
+


Field Documentation

+

+ + + + +
+ + +
const CVector& NLSOUND::CompareSources::_Pos +
+
+ + + + + +
+   + + +

+ +

+Definition at line 1966 of file audio_mixer_user.cpp.

+


The documentation for this struct was generated from the following file: +
Generated on Tue Mar 16 14:39:33 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1