Browse Source

Forward declare components

master
Riyyi 3 years ago
parent
commit
3e1d0eef53
  1. 2
      inferno/src/inferno/system/camerasystem.cpp
  2. 5
      inferno/src/inferno/system/camerasystem.h

2
inferno/src/inferno/system/camerasystem.cpp

@ -3,6 +3,8 @@
#include "inferno/application.h"
#include "inferno/assert.h"
#include "inferno/component/cameracomponent.h"
#include "inferno/component/transformcomponent.h"
#include "inferno/io/input.h"
#include "inferno/io/log.h"
#include "inferno/system/camerasystem.h"

5
inferno/src/inferno/system/camerasystem.h

@ -5,8 +5,6 @@
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
#include "inferno/component/cameracomponent.h"
#include "inferno/component/transformcomponent.h"
#include "inferno/singleton.h"
#define NEAR_PLANE 0.1f
@ -14,6 +12,9 @@
namespace Inferno {
struct TransformComponent;
struct CameraComponent;
class CameraSystem final : public Singleton<CameraSystem> {
public:
CameraSystem(s);

Loading…
Cancel
Save