Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
audio_box_emitter.hpp
Go to the documentation of this file.
1
8
#pragma once
9
#include "
audio_emitter_base.hpp
"
10
11
namespace
toast {
12
19
class
TOAST_API [[ToastNode]]
AudioBoxEmitter
:
public
AudioEmitterBase {
20
friend
class
AudioEmitterBase;
21
22
public
:
23
void
extents(glm::vec3 value);
24
25
protected
:
26
auto
emitterPosition
(
const
glm::vec3&
listener
) -> glm::vec3
override
;
27
28
[[
Reflect
]]
29
glm::vec3
m_extents
= glm::vec3 {1.0f};
30
};
31
32
}
audio_emitter_base.hpp
Abstract base for all spatialized 3D audio emitters.
toast::AudioBoxEmitter
Box-shaped audio source.
Definition
audio_box_emitter.hpp:19
toast::AudioBoxEmitter::m_extents
glm::vec3 m_extents
half-extents in local space
Definition
audio_box_emitter.hpp:29
toast::AudioBoxEmitter::emitterPosition
auto emitterPosition(const glm::vec3 &listener) -> glm::vec3 override
override this to project listener to the shape's nearest surface
Definition
audio_box_emitter.cpp:11
toast::Node::listener
auto listener() noexcept -> event::Listener &
The event Listener owned by this node. Lazy-allocated, freed only with the node.
Definition
node.cpp:204
toast::Reflect
Definition
reflect.hpp:244
engine
src
toast
audio
nodes
audio_box_emitter.hpp
Generated by
1.17.0