-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: João Miguel Nogueira <[email protected]>
- Loading branch information
1 parent
b7c2823
commit c83baa2
Showing
23 changed files
with
651 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/// @file | ||
/// @brief Component @ref cubos::engine::AudioListener. | ||
/// @ingroup audio-plugin | ||
|
||
#pragma once | ||
|
||
#include <map> | ||
|
||
#include <cubos/core/al/audio_context.hpp> | ||
#include <cubos/core/reflection/reflect.hpp> | ||
|
||
#include <cubos/engine/api.hpp> | ||
|
||
namespace cubos::engine | ||
{ | ||
/// @brief Component which adds an AudioListener to the entitiy | ||
/// @ingroup audio-plugin | ||
struct CUBOS_ENGINE_API AudioListener | ||
{ | ||
CUBOS_REFLECT; | ||
|
||
/// @brief Whether the listener is active or not. | ||
bool active{false}; | ||
}; | ||
} // namespace cubos::engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/// @file | ||
/// @brief Component @ref cubos::engine::AudioPause. | ||
/// @ingroup audio-plugin | ||
|
||
#pragma once | ||
|
||
#include <glm/glm.hpp> | ||
|
||
#include <cubos/core/reflection/reflect.hpp> | ||
|
||
#include <cubos/engine/api.hpp> | ||
#include <cubos/engine/prelude.hpp> | ||
|
||
namespace cubos::engine | ||
{ | ||
/// @brief Component which triggers the pause of an audio source. | ||
/// @ingroup audio-plugin | ||
struct CUBOS_ENGINE_API AudioPause | ||
{ | ||
CUBOS_REFLECT; | ||
}; | ||
} // namespace cubos::engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/// @file | ||
/// @brief Component @ref cubos::engine::AudioPlay. | ||
/// @ingroup audio-plugin | ||
|
||
#pragma once | ||
|
||
#include <glm/glm.hpp> | ||
|
||
#include <cubos/core/reflection/reflect.hpp> | ||
|
||
#include <cubos/engine/api.hpp> | ||
#include <cubos/engine/prelude.hpp> | ||
|
||
namespace cubos::engine | ||
{ | ||
/// @brief Component which triggers the play of an audio source. | ||
/// @ingroup audio-plugin | ||
struct CUBOS_ENGINE_API AudioPlay | ||
{ | ||
CUBOS_REFLECT; | ||
}; | ||
} // namespace cubos::engine |
Oops, something went wrong.