![]() |
AireEngine
A 3D Open-World Game Engine
|
AudioListener class to listen to sound effects. More...
#include <audioListener.h>
Public Member Functions | |
| AudioListener * | setPosition (float x, float y, float z) |
| Sets the position of the audio listener. | |
| AudioListener * | setPosition (const glm::vec3 &pos) |
| Sets the position of the audio listener. | |
| glm::vec3 | getPosition () const |
| Gets the position of the audio listener. | |
| AudioListener * | setOrientation (float atx, float aty, float atz, float upx, float upy, float upz) |
| Sets the orientation of the audio listener. | |
| AudioListener * | setOrientation (const glm::vec3 &at, const glm::vec3 &up) |
| Sets the orientation of the audio listener. | |
| glm::vec3 | getOrientationAt () const |
| Gets the "at" vector of the audio listener orientation. | |
| glm::vec3 | getOrientationUp () const |
| Gets the "up" vector of the audio listener orientation. | |
AudioListener class to listen to sound effects.
Normally, there is only one unique audio listener.
| glm::vec3 Aire::AudioListener::getOrientationAt | ( | ) | const |
Gets the "at" vector of the audio listener orientation.
| glm::vec3 Aire::AudioListener::getOrientationUp | ( | ) | const |
Gets the "up" vector of the audio listener orientation.
| glm::vec3 Aire::AudioListener::getPosition | ( | ) | const |
Gets the position of the audio listener.
| AudioListener * Aire::AudioListener::setOrientation | ( | const glm::vec3 & | at, |
| const glm::vec3 & | up ) |
Sets the orientation of the audio listener.
| at | The "at" vector. |
| up | The "up" vector. |
| AudioListener * AudioListener::setOrientation | ( | float | atx, |
| float | aty, | ||
| float | atz, | ||
| float | upx, | ||
| float | upy, | ||
| float | upz ) |
Sets the orientation of the audio listener.
| atx | The x-coordinate of the "at" vector. |
| aty | The y-coordinate of the "at" vector. |
| atz | The z-coordinate of the "at" vector. |
| upx | The x-coordinate of the "up" vector. |
| upy | The y-coordinate of the "up" vector. |
| upz | The z-coordinate of the "up" vector. |
| AudioListener * Aire::AudioListener::setPosition | ( | const glm::vec3 & | pos | ) |
Sets the position of the audio listener.
| pos | The position vector. |
| AudioListener * AudioListener::setPosition | ( | float | x, |
| float | y, | ||
| float | z ) |
Sets the position of the audio listener.
| x | The x-coordinate of the position. |
| y | The y-coordinate of the position. |
| z | The z-coordinate of the position. |