From d215ab83ab254365edb8ae2f949a3b2c6e3ddaac Mon Sep 17 00:00:00 2001 From: Vanessa Karolek <vaka1997@uni-koblenz.de> Date: Tue, 15 Jun 2021 13:10:18 +0200 Subject: [PATCH] [#42] make camera controller inaccessible for the user --- .../camera/include/vkcv/camera/CameraManager.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/modules/camera/include/vkcv/camera/CameraManager.hpp b/modules/camera/include/vkcv/camera/CameraManager.hpp index e75ec169..153a18c2 100644 --- a/modules/camera/include/vkcv/camera/CameraManager.hpp +++ b/modules/camera/include/vkcv/camera/CameraManager.hpp @@ -47,6 +47,13 @@ namespace vkcv { */ void bindCameraToEvents(); + /** + * @brief Gets a camera controller object of specified @p controllerType. + * @param[in] controllerType The type of the camera controller. + * @return The specified camera controller object. + */ + CameraController& getControllerByType(ControllerType controllerType); + /** * @brief A callback function for key events. Currently, cycling between all existing camera controllers via Tab, * window closure via Esc and polling key events from the active camera controller are supported. @@ -162,18 +169,10 @@ namespace vkcv { */ ControllerType getControllerType(uint32_t cameraIndex); - /** - * @brief Gets a camera controller object of specified @p controllerType. - * @param[in] controllerType The type of the camera controller. - * @return The specified camera controller object. - */ - CameraController& getControllerByType(ControllerType controllerType); - /** * @brief Updates all stored camera controllers in respect to @p deltaTime. * @param[in] deltaTime The time that has passed since last update. */ void update(double deltaTime); - }; } -- GitLab