diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-11 14:22:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-12-12 09:17:38 +0000 |
commit | 379b07fa1fb953cc175028fcb95dfbb64c392451 (patch) | |
tree | a299bb5118612a308f2404638e24d3b4184a78d7 /test/test-render.cpp | |
parent | Fix case of GetViewProjection (diff) | |
download | ilt-379b07fa1fb953cc175028fcb95dfbb64c392451.tar.bz2 ilt-379b07fa1fb953cc175028fcb95dfbb64c392451.tar.xz ilt-379b07fa1fb953cc175028fcb95dfbb64c392451.zip |
Make Camera members private with accessors and helpful setters
Diffstat (limited to 'test/test-render.cpp')
-rw-r--r-- | test/test-render.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test-render.cpp b/test/test-render.cpp index d6e4094..77501ac 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -100,8 +100,7 @@ BOOST_FIXTURE_TEST_SUITE(w, TestRenderOutput); BOOST_AUTO_TEST_CASE(basic) { SceneRenderer ss {size, output}; - ss.camera.pos = {-10, -10, 60}; - ss.camera.forward = glm::normalize(glm::vec3 {1, 1, -0.5F}); + ss.camera.setView({-10, -10, 60}, glm::normalize(glm::vec3 {1, 1, -0.5F})); TestScene scene; ss.render(scene); glDisable(GL_DEBUG_OUTPUT); @@ -111,8 +110,7 @@ BOOST_AUTO_TEST_CASE(basic) BOOST_AUTO_TEST_CASE(pointlight) { SceneRenderer ss {size, output}; - ss.camera.pos = {-10, -10, 60}; - ss.camera.forward = glm::normalize(glm::vec3 {1, 1, -0.5F}); + ss.camera.setView({-10, -10, 60}, glm::normalize(glm::vec3 {1, 1, -0.5F})); class PointLightScene : public TestScene { public: void |