diff options
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]; |