Forward declare components
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include "inferno/application.h"
|
#include "inferno/application.h"
|
||||||
#include "inferno/assert.h"
|
#include "inferno/assert.h"
|
||||||
|
#include "inferno/component/cameracomponent.h"
|
||||||
|
#include "inferno/component/transformcomponent.h"
|
||||||
#include "inferno/io/input.h"
|
#include "inferno/io/input.h"
|
||||||
#include "inferno/io/log.h"
|
#include "inferno/io/log.h"
|
||||||
#include "inferno/system/camerasystem.h"
|
#include "inferno/system/camerasystem.h"
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
|
#include "entt/entity/registry.hpp" // entt::entity, entt::registry
|
||||||
|
|
||||||
#include "inferno/component/cameracomponent.h"
|
|
||||||
#include "inferno/component/transformcomponent.h"
|
|
||||||
#include "inferno/singleton.h"
|
#include "inferno/singleton.h"
|
||||||
|
|
||||||
#define NEAR_PLANE 0.1f
|
#define NEAR_PLANE 0.1f
|
||||||
@@ -14,6 +12,9 @@
|
|||||||
|
|
||||||
namespace Inferno {
|
namespace Inferno {
|
||||||
|
|
||||||
|
struct TransformComponent;
|
||||||
|
struct CameraComponent;
|
||||||
|
|
||||||
class CameraSystem final : public Singleton<CameraSystem> {
|
class CameraSystem final : public Singleton<CameraSystem> {
|
||||||
public:
|
public:
|
||||||
CameraSystem(s);
|
CameraSystem(s);
|
||||||
|
|||||||
Reference in New Issue
Block a user