예제 #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