YSE sound engine  1.0
cross platform sound engine
 All Classes Namespaces Functions Pages
listener.hpp
1 /*
2  ==============================================================================
3 
4  listener.h
5  Created: 30 Jan 2014 4:22:19pm
6  Author: yvan
7 
8  ==============================================================================
9 */
10 
11 
12 #ifndef LISTENER_H_INCLUDED
13 #define LISTENER_H_INCLUDED
14 
15 #include "headers/defines.hpp"
16 #include "utils/vector.hpp"
17 
18 namespace YSE {
19 
29  class API listener {
30  public:
31 
32  Vec getPosition(); //< Get the current position of the listener.
33  Vec getVelocity(); //< Get the current velocity of the listener. This is a calculated value. Velocity cannot be set manually.
34  Vec getForward(); //< Get the 'forward' orientation of the listener.
35  Vec getUpward(); //< Get the 'upward' orientation of the listener.
36 
43  listener& setPosition(const Vec &pos);
44 
49  listener& setOrientation(const Vec &forward, const Vec &up = Vec(0, 1, 0));
50 
51  };
52 
56  API listener & Listener();
57 }
58 
59 
60 
61 #endif // LISTENER_H_INCLUDED
The Listener is a singleton object used to control your position in the virtual space.
Definition: listener.hpp:29