Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <Listener.h>
Classes | |
struct | Dirty |
Public Member Functions | |
Listener () throw () | |
virtual | ~Listener () |
LVector3 | getPosition () const throw () |
void | setPosition (LVector3 x) throw () |
Vector3 | getAtDirection () const throw () |
Vector3 | getUpDirection () const throw () |
void | setOrientation (Vector3 at, Vector3 up) throw () |
Vector3 | getVelocity () const throw () |
void | setVelocity (Vector3 x) throw () |
Range< Scalar > | getAngleRange () const throw () |
void | setAngleRange (Range< Scalar > r) throw () |
Range< Scalar > | getCosAngleRange () const throw () |
void | setCosAngleRange (Range< Scalar > r) throw () |
Scalar | getRadius () const throw () |
void | setRadius (Scalar r) throw () |
Scalar | getGain () const throw () |
void | setGain (Scalar g) throw () |
SharedPtr< RenderableListener > | getRenderable () const throw () |
void | setRenderable (SharedPtr< RenderableListener > ptr) throw () |
SharedPtr< UserData > | getUserData () const throw () |
void | setUserData (SharedPtr< UserData > ptr) throw () |
void | update (int flags) throw () |
Vector3 | toLocalDirection (Vector3 dir) const throw () |
Protected Attributes | |
struct Audio::Listener::Dirty | dirty |
Listener class
Definition at line 21 of file Listener.h.
Listener::Listener | ( | ) | ||
throw | ( | |||
) |
Construct a default listener with default parameters
Definition at line 12 of file Listener.cpp.
|
virtual |
Definition at line 24 of file Listener.cpp.
Return the listener's minimum/maximum perception angle
Definition at line 28 of file Listener.cpp.
References UniverseUtil::acos(), Audio::Range< T >::max, and Audio::Range< T >::min.
|
inline |
Return the listener's front direction
Definition at line 89 of file Listener.h.
Definition at line 116 of file Listener.h.
|
inline |
|
inline |
Return the listener's central position in 3D space
Definition at line 83 of file Listener.h.
Referenced by Audio::SceneManager::activationPhaseImpl().
|
inline |
|
inline |
Get renderer-specific data associated (and destroyed) with this sound source
Definition at line 136 of file Listener.h.
|
inline |
Return the listener's up direction
Definition at line 92 of file Listener.h.
Get user-specific data associated (and destroyed) with this listener
Definition at line 142 of file Listener.h.
|
inline |
Definition at line 119 of file Listener.h.
References Audio::Listener::Dirty::attributes, and dirty.
|
inline |
Set the listener's gain
Definition at line 132 of file Listener.h.
References dirty, g, and Audio::Listener::Dirty::gain.
Set the listener's orientation
Definition at line 95 of file Listener.h.
References dirty, Audio::Listener::Dirty::location, and up.
|
inline |
Set the listener's central position in 3D space
Definition at line 86 of file Listener.h.
References dirty, Audio::Listener::Dirty::location, and x.
|
inline |
Set the listener's radius
Definition at line 125 of file Listener.h.
References Audio::Listener::Dirty::attributes, and dirty.
|
inline |
Set renderer-specific data to be associated (and destroyed) with this sound source
Definition at line 139 of file Listener.h.
References dirty, and Audio::Listener::Dirty::setAll().
Set user-specific data to be associated (and destroyed) with this listener
Definition at line 145 of file Listener.h.
|
inline |
Set the listener's velocity
Definition at line 101 of file Listener.h.
References dirty, Audio::Listener::Dirty::location, and x.
Return the direction 'dir' in a local coordinate system centered at the listener's position, with the -Z axis pointing forward, +X pointing rightward and +Y pointing upwards (the OpenGL way).
Definition at line 68 of file Listener.cpp.
void Listener::update | ( | int | flags) | ||
throw | ( | ||||
) |
flags | see RenderableListener::UpdateFlags |
Definition at line 41 of file Listener.cpp.
References Audio::RenderableListener::update(), Audio::RenderableListener::UPDATE_ATTRIBUTES, Audio::RenderableListener::UPDATE_GAIN, and Audio::RenderableListener::UPDATE_LOCATION.
|
protected |
Referenced by setCosAngleRange(), setGain(), setOrientation(), setPosition(), setRadius(), setRenderable(), and setVelocity().