Cogs.Core
Extensions
Audio
Source
AudioListenerComponent.h
1
#pragma once
2
3
#include "Components/Core/DynamicComponent.h"
4
5
#include <glm/vec3.hpp>
6
7
namespace
Cogs
8
{
9
namespace
Core
10
{
11
struct
AudioListenerComponent
:
public
DynamicComponent
12
{
13
static
void
registerType();
14
15
void
initialize(
Context
* context);
16
void
update();
17
void
cleanup(
Context
* context);
18
19
float
volume = 1.0f;
20
21
glm::vec3 previousPosition;
22
};
23
}
24
}
25
26
template
<>
inline
Cogs::StringView
getName<Cogs::Core::AudioListenerComponent>() {
return
"AudioListenerComponent"
; }
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::DynamicComponent
Base class for components implementing dynamic behavior.
Definition:
DynamicComponent.h:31
Cogs::StringView
Provides a weakly referenced view over the contents of a string.
Definition:
StringView.h:24
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::Core::AudioListenerComponent
Definition:
AudioListenerComponent.h:12
Generated by
1.9.6