#include <Listener.hpp>
Static Public Member Functions | |
| static void | SetGlobalVolume (float Volume) |
| Change the global volume of all the sounds. | |
| static float | GetGlobalVolume () |
| Get the current value of the global volume of all the sounds. | |
| static void | SetPosition (float PosX, float PosY, float PosZ) |
| Change the position of the listener. | |
| static void | GetPosition (float &PosX, float &PosY, float &PosZ) |
| Get the current position of the listener. | |
| static void | SetTarget (float TargetX, float TargetY, float TargetZ) |
| Change the orientation of the listener (the point he must look at). | |
| static void | GetTarget (float &TargetX, float &TargetY, float &TargetZ) |
| Get the current orientation of the listener (the point he's looking at). | |
Definition at line 41 of file Listener.hpp.
| static void sf::Listener::SetGlobalVolume | ( | float | Volume | ) | [static] |
Change the global volume of all the sounds.
The default volume is 100
| Volume | : New global volume, in the range [0, 100] |
| static float sf::Listener::GetGlobalVolume | ( | ) | [static] |
Get the current value of the global volume of all the sounds.
| static void sf::Listener::SetPosition | ( | float | PosX, | |
| float | PosY, | |||
| float | PosZ | |||
| ) | [static] |
Change the position of the listener.
The default position is (0, 0, 0)
| PosX | : X position of the listener in the world | |
| PosY | : Y position of the listener in the world | |
| PosZ | : Z position of the listener in the world |
| static void sf::Listener::GetPosition | ( | float & | PosX, | |
| float & | PosY, | |||
| float & | PosZ | |||
| ) | [static] |
Get the current position of the listener.
| PosX | : X position of the listener in the world | |
| PosY | : Y position of the listener in the world | |
| PosZ | : Z position of the listener in the world |
| static void sf::Listener::SetTarget | ( | float | TargetX, | |
| float | TargetY, | |||
| float | TargetZ | |||
| ) | [static] |
Change the orientation of the listener (the point he must look at).
The default target is (0, 0, -1)
| TargetX | : X position of the point the listener must look at | |
| TargetY | : X position of the point the listener must look at | |
| TargetZ | : X position of the point the listener must look at |
| static void sf::Listener::GetTarget | ( | float & | TargetX, | |
| float & | TargetY, | |||
| float & | TargetZ | |||
| ) | [static] |
Get the current orientation of the listener (the point he's looking at).
| TargetX | : X position of the point the listener is looking at | |
| TargetY | : X position of the point the listener is looking at | |
| TargetZ | : X position of the point the listener is looking at |