|
|
|
@ -1,13 +1,6 @@
|
|
|
|
|
#ifndef CAMERA_SYSTEM_H |
|
|
|
|
#define CAMERA_SYSTEM_H |
|
|
|
|
|
|
|
|
|
#define TRANSLATE_SPEED 2.5f |
|
|
|
|
#define ROTATE_SPEED 90.0f |
|
|
|
|
#define ZOOM_SENSITIVITY 2.5f |
|
|
|
|
#define MOUSE_SENSITIVITY 0.25f |
|
|
|
|
#define NEAR_PLANE 0.1f |
|
|
|
|
#define FAR_PLANE 100.0f |
|
|
|
|
|
|
|
|
|
#include <memory> //std::shared_ptr |
|
|
|
|
|
|
|
|
|
#include "entt/entity/registry.hpp" // entt::entity, entt::registry |
|
|
|
@ -15,6 +8,9 @@
|
|
|
|
|
#include "inferno/component/cameracomponent.h" |
|
|
|
|
#include "inferno/component/transformcomponent.h" |
|
|
|
|
|
|
|
|
|
#define NEAR_PLANE 0.1f |
|
|
|
|
#define FAR_PLANE 100.0f |
|
|
|
|
|
|
|
|
|
namespace Inferno { |
|
|
|
|
|
|
|
|
|
class CameraSystem { |
|
|
|
|