Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
audio_listener.hpp
Go to the documentation of this file.
1
8
9
#pragma once
10
#include <
toast/export.hpp
>
11
#include <
toast/world/node_3d.hpp
>
12
13
namespace
toast {
14
15
class
TOAST_API [[ToastNode, Color(
"Beige"
), Icon(
"AudioListener"
)]]
AudioListener
:
public
Node3D
{
16
public
:
17
void
index(
int
value);
18
void
weight(
float
value);
19
20
private
:
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
}
toast::AudioListener
Definition
audio_listener.hpp:15
toast::Box
Intrusive reference-counted handle to a Node.
Definition
box.hpp:35
toast::Node3D
Definition
node_3d.hpp:25
toast::Reflect
Definition
reflect.hpp:244
export.hpp
node_3d.hpp
Node with 3D spatial transforms.
engine
src
toast
audio
nodes
audio_listener.hpp
Generated by
1.17.0