Toast Engine
Loading...
Searching...
No Matches
audio_listener.hpp
Go to the documentation of this file.
1
8
9#pragma once
10#include <toast/export.hpp>
12
13namespace toast {
14
15class TOAST_API [[ToastNode, Color("Beige"), Icon("AudioListener")]] AudioListener : public Node3D {
16public:
17 void index(int value);
18 void weight(float value);
19
20private:
21 void begin();
22 void lateTick();
23 void end();
24
25 [[Reflect, Range(0, 7)]]
26 int m_index = 0;
27
28 [[Reflect, Range(0.0, 1.0)]]
29 float m_weight = 1.0f;
30
31 [[Reflect]]
32 Box<Node3D> attenuation_override;
33
34 bool is_dirty = true;
35 bool m_weight_changed = false;
36
37 glm::vec3 prev_position;
38 glm::vec3 prev_rotation;
39};
40
41}
Definition audio_listener.hpp:15
Intrusive reference-counted handle to a Node.
Definition box.hpp:35
Definition node_3d.hpp:25
Definition reflect.hpp:244
Node with 3D spatial transforms.