Audio API first pass

This commit is contained in:
2023-01-17 10:13:08 -08:00
parent 2950bc9184
commit 9168348e6b
27 changed files with 513 additions and 95 deletions

View File

@ -7,6 +7,7 @@
#include "dawnlibs.hpp"
#include "assert/assert.hpp"
#include "util/flag.hpp"
#include "event/Event.hpp"
namespace Dawn {
class SceneItem;
@ -38,6 +39,8 @@ namespace Dawn {
void updateChildrenTransforms();
public:
// I have no idea if I'm keeping this
Event<> eventTransformUpdated;
SceneItem *item;
/**
@ -123,6 +126,13 @@ namespace Dawn {
*/
void setLocalTransform(glm::mat4 transform);
/**
* Returns the position of the origin of this transform in world-space.
*
* @return Transform origin in world-space.
*/
glm::vec3 getWorldPosition();
/**
* Returns the transformation matrix for this transform, in world-space.
* @return The transform origin in world-space.