mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Updated CSFML to match the changes related to the up vector changes
This commit is contained in:
1 parent
42c2fb1f5c
commit
6abeaed4aa
2 files changed
+50
-9
No files matched your search
@@ -74,3 +74,19 @@ sfVector3f sfListener_getDirection()
|
||||
sfVector3f direction = {sfmlDirection.x, sfmlDirection.y, sfmlDirection.z};
|
||||
return direction;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfListener_setUpVector(sfVector3f upVector)
|
||||
{
|
||||
sf::Listener::setUpVector(upVector.x, upVector.y, upVector.z);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfVector3f sfListener_getUpVector()
|
||||
{
|
||||
sf::Vector3f sfmlUpVector = sf::Listener::getUpVector();
|
||||
sfVector3f upVector = {sfmlUpVector.x, sfmlUpVector.y, sfmlUpVector.z};
|
||||
return upVector;
|
||||
}
|
||||
Reference in new issue
Block a user