diff options
author | Silc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com> | 2024-02-13 14:19:23 +0900 |
---|---|---|
committer | Silc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com> | 2024-02-13 18:53:21 +0900 |
commit | 67e38709fd1147149c6fcb032c774c5642b172fc (patch) | |
tree | 2f502bd0877b962db5df0c778cc9c494f40880c3 /tests/scene/test_camera_3d.h | |
parent | 9050ee1542f4e071188e8e4f868f3507bb31b3dc (diff) | |
download | redot-engine-67e38709fd1147149c6fcb032c774c5642b172fc.tar.gz |
Avoid unqualified-id "near" and "far" in Node3DEditor/Viewport
Diffstat (limited to 'tests/scene/test_camera_3d.h')
-rw-r--r-- | tests/scene/test_camera_3d.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/scene/test_camera_3d.h b/tests/scene/test_camera_3d.h index 169486d108..830c667257 100644 --- a/tests/scene/test_camera_3d.h +++ b/tests/scene/test_camera_3d.h @@ -65,17 +65,17 @@ TEST_CASE("[SceneTree][Camera3D] Getters and setters") { } SUBCASE("Camera frustum properties") { - constexpr float near = 0.2f; - constexpr float far = 995.0f; + constexpr float depth_near = 0.2f; + constexpr float depth_far = 995.0f; constexpr float fov = 120.0f; constexpr float size = 7.0f; constexpr float h_offset = 1.1f; constexpr float v_offset = -1.6f; const Vector2 frustum_offset(5, 7); - test_camera->set_near(near); - CHECK(test_camera->get_near() == near); - test_camera->set_far(far); - CHECK(test_camera->get_far() == far); + test_camera->set_near(depth_near); + CHECK(test_camera->get_near() == depth_near); + test_camera->set_far(depth_far); + CHECK(test_camera->get_far() == depth_far); test_camera->set_fov(fov); CHECK(test_camera->get_fov() == fov); test_camera->set_size(size); |