cgv
|
This class models the single OpenAL listener. More...
#include <al_context.h>
Public Member Functions | |
OALListener (const OALListener &other)=delete | |
OALListener (OALListener &&other)=delete | |
OALListener & | operator= (const OALListener &other)=delete |
OALListener & | operator= (OALListener &&other)=delete |
Static Public Member Functions | |
static cgv::math::fvec< float, 3 > | get_position () |
Gets the listener position. | |
static cgv::math::fvec< float, 3 > | get_velocity () |
Gets the listener velocity. | |
static cgv::math::fmat< float, 3, 2 > | get_orientation () |
Gets the listener orientation. | |
static void | set_position (cgv::math::fvec< float, 3 > pos) |
Sets the listener position. | |
static void | set_velocity (cgv::math::fvec< float, 3 > vel) |
Sets the listener velocity. | |
static void | set_orientation (cgv::math::fvec< float, 3 > at, cgv::math::fvec< float, 3 > up) |
Sets the listener orientation. | |
This class models the single OpenAL listener.
The OALListener is essentially a singleton class to use the listener model of OpenAL. There are no constructors as there is only one listener in the OpenAL context.
Definition at line 187 of file al_context.h.
|
static |
Gets the listener orientation.
Definition at line 379 of file al_context.cxx.
References cgv::math::fvec< T, N >::data().
|
static |
Gets the listener position.
Definition at line 365 of file al_context.cxx.
References cgv::math::fvec< T, N >::data().
|
static |
Gets the listener velocity.
Definition at line 372 of file al_context.cxx.
References cgv::math::fvec< T, N >::data().
|
static |
Sets the listener orientation.
[in] | at | The new view direction |
[in] | up | The new up direction |
Definition at line 390 of file al_context.cxx.
|
static |
Sets the listener position.
[in] | pos | The new position |
Definition at line 386 of file al_context.cxx.
References cgv::math::fvec< T, N >::data().
|
static |
Sets the listener velocity.
[in] | vel | The new velocity |
Definition at line 388 of file al_context.cxx.
References cgv::math::fvec< T, N >::data().