diff options
author | 2017-12-01 13:22:27 +0100 | |
---|---|---|
committer | 2017-12-01 13:22:27 +0100 | |
commit | 39176274946d70ff520f265dee8fbd16d5fe0000 (patch) | |
tree | 318801d93146752050c9a492654ae3738820e3b9 /3rdparty/bgfx/examples/common/camera.cpp | |
parent | 6829ecb3b037d6bfbe0b84e818d17d712f71bce6 (diff) |
Updated GENie, BGFX, BX, added BIMG since it is separated now, updated all shader binaries and MAME part of code to support new interfaces [Miodrag Milanovic]
Diffstat (limited to '3rdparty/bgfx/examples/common/camera.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/common/camera.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/3rdparty/bgfx/examples/common/camera.cpp b/3rdparty/bgfx/examples/common/camera.cpp index a2a1c31dc78..14f93d52cde 100644 --- a/3rdparty/bgfx/examples/common/camera.cpp +++ b/3rdparty/bgfx/examples/common/camera.cpp @@ -4,7 +4,7 @@ */ #include <bx/timer.h> -#include <bx/fpumath.h> +#include <bx/math.h> #include "camera.h" #include "entry/entry.h" #include "entry/cmd.h" @@ -15,32 +15,32 @@ int cmdMove(CmdContext* /*_context*/, void* /*_userData*/, int _argc, char const { if (_argc > 1) { - if (0 == bx::strncmp(_argv[1], "forward") ) + if (0 == bx::strCmp(_argv[1], "forward") ) { cameraSetKeyState(CAMERA_KEY_FORWARD, true); return 0; } - else if (0 == bx::strncmp(_argv[1], "left") ) + else if (0 == bx::strCmp(_argv[1], "left") ) { cameraSetKeyState(CAMERA_KEY_LEFT, true); return 0; } - else if (0 == bx::strncmp(_argv[1], "right") ) + else if (0 == bx::strCmp(_argv[1], "right") ) { cameraSetKeyState(CAMERA_KEY_RIGHT, true); return 0; } - else if (0 == bx::strncmp(_argv[1], "backward") ) + else if (0 == bx::strCmp(_argv[1], "backward") ) { cameraSetKeyState(CAMERA_KEY_BACKWARD, true); return 0; } - else if (0 == bx::strncmp(_argv[1], "up") ) + else if (0 == bx::strCmp(_argv[1], "up") ) { cameraSetKeyState(CAMERA_KEY_UP, true); return 0; } - else if (0 == bx::strncmp(_argv[1], "down") ) + else if (0 == bx::strCmp(_argv[1], "down") ) { cameraSetKeyState(CAMERA_KEY_DOWN, true); return 0; @@ -173,9 +173,9 @@ struct Camera float right[3] = { - bx::fsin(m_horizontalAngle - bx::piHalf), + bx::fsin(m_horizontalAngle - bx::kPiHalf), 0, - bx::fcos(m_horizontalAngle - bx::piHalf), + bx::fcos(m_horizontalAngle - bx::kPiHalf), }; float up[3]; |