From 937cecf67cb39951f206f8d65d20f5851eb9a6bb Mon Sep 17 00:00:00 2001 From: fallenatlas Date: Mon, 25 Sep 2023 20:28:37 +0100 Subject: [PATCH] refactor(core): remove unused camera --- core/CMakeLists.txt | 1 - core/include/cubos/core/gl/camera.hpp | 26 -------------------------- 2 files changed, 27 deletions(-) delete mode 100644 core/include/cubos/core/gl/camera.hpp diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index d9858e3f6c..9d5b48613a 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -137,7 +137,6 @@ set(CUBOS_CORE_INCLUDE "include/cubos/core/gl/palette.hpp" "include/cubos/core/gl/grid.hpp" "include/cubos/core/gl/vertex.hpp" - "include/cubos/core/gl/camera.hpp" "include/cubos/core/gl/light.hpp" "include/cubos/core/gl/util.hpp" diff --git a/core/include/cubos/core/gl/camera.hpp b/core/include/cubos/core/gl/camera.hpp deleted file mode 100644 index cedc21b70d..0000000000 --- a/core/include/cubos/core/gl/camera.hpp +++ /dev/null @@ -1,26 +0,0 @@ -/// @file -/// @brief Class @ref cubos::core::gl::Camera. -/// @ingroup core-gl - -#pragma once - -#include - -#include - -namespace cubos::core::gl -{ - /// @brief Describes a camera. - /// @todo This should be moved to the engine. - /// @ingroup core-gl - struct Camera - { - float fovY; ///< Vertical field of view in degrees. - float zNear; ///< Near clipping plane. - float zFar; ///< Far clipping plane. - glm::mat4 view; ///< Camera's view matrix. - - glm::ivec2 viewportPosition; ///< Bottom left corner of the viewport. - glm::ivec2 viewportSize; ///< Size of the viewport. - }; -} // namespace cubos::core::gl