コード例 #1
0
ファイル: __init__.py プロジェクト: wwoods/ramfull
 def _set_up_orientation(self, orientation):
     val = (al.ALfloat * 6)(*(self._forward_orientation + orientation))
     self._driver.lock()
     al.alListenerfv(al.AL_ORIENTATION, val)
     self._driver.unlock()
     self._up_orientation = orientation
コード例 #2
0
ファイル: __init__.py プロジェクト: cb109/maxstick
 def _set_up_orientation(self, orientation):
     val = (al.ALfloat *
            6)(*map(float, (self._forward_orientation + orientation)))
     with self._driver.lock:
         al.alListenerfv(al.AL_ORIENTATION, val)
     self._up_orientation = orientation
コード例 #3
0
 def _set_up_orientation(self, orientation):
     val = (al.ALfloat * 6)(*(self._forward_orientation + orientation))
     self._driver.lock()
     al.alListenerfv(al.AL_ORIENTATION, val)
     self._driver.unlock()
     self._up_orientation = orientation
コード例 #4
0
 def _set_up_orientation(self, orientation):
     val = (al.ALfloat * 6)(*map(float, (self._forward_orientation + orientation)))
     with self._driver.lock:
         al.alListenerfv(al.AL_ORIENTATION, val)
     self._up_orientation = orientation