mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 19:29:19 +02:00
tmj merge
This commit is contained in:
@@ -348,6 +348,13 @@ sound& sound::position(glm::vec3 p)
|
||||
return *this;
|
||||
}
|
||||
|
||||
glm::vec3 sound::location()
|
||||
{
|
||||
if (mode == global)
|
||||
throw std::runtime_error("sound: bad state, no position");
|
||||
return pos;
|
||||
}
|
||||
|
||||
sound& sound::position(Math3D::vector3 const &pos)
|
||||
{
|
||||
position((glm::vec3)glm::make_vec3(&pos.x));
|
||||
|
||||
Reference in New Issue
Block a user