CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Listener.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Forward.hpp"
11
13
15
16namespace CeresEngine {
17
21 Vector3 position = Vector3(0.0);
22
24 Vector3 orientation = Vector3(0.0);
25
27 Vector3 velocity = Vector3(0.0);
28
31 double gain = 1.0;
32 };
33
38 public:
40 AudioAPIListener() = default;
41
44
47
49 virtual ~AudioAPIListener() = default;
50
51 public:
53 virtual void update(const AudioAPIListenerDescriptor& descriptor) = 0;
54 };
55
56} // namespace CeresEngine
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
A listener is a entity that represents the location, direction and velocity of a object (generally th...
Definition Listener.hpp:37
AudioAPIListener()=default
The default constructor.
AudioAPIListener(const AudioAPIListener &)=delete
Deleted copy constructor.
AudioAPIListener & operator=(const AudioAPIListener &)=delete
Deleted copy assignment operator.
virtual ~AudioAPIListener()=default
Virtual destructor.
A simple reference counter base class.
Definition SmartPtr.hpp:438
Definition Application.hpp:19
A descriptor structure that describes the creation of an audio listener.
Definition Listener.hpp:19