NazaraEngine/include/Nazara/Audio/AudioDevice.inl

16 lines
461 B
C++

// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Audio module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Audio/Debug.hpp>
namespace Nz
{
inline void AudioDevice::SetListenerRotation(const Quaternionf& rotation)
{
SetListenerDirection(rotation * Vector3f::Forward(), rotation * Vector3f::Up());
}
}
#include <Nazara/Audio/DebugOff.hpp>