Cogs.Core
AudioListenerComponent.h
1#pragma once
2
3#include "Components/Core/DynamicComponent.h"
4
5#include <glm/vec3.hpp>
6
7namespace Cogs
8{
9 namespace Core
10 {
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
26template<> inline Cogs::StringView getName<Cogs::Core::AudioListenerComponent>() { return "AudioListenerComponent"; }
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Base class for components implementing dynamic behavior.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23