This commit is contained in:
2025-01-02 13:56:33 -05:00
parent 30bdd66086
commit 18072f3b66
20 changed files with 109 additions and 75 deletions

View File

@@ -2,6 +2,6 @@
#include "Entity.h"
#pragma once
class Camera : public Entity {
class Camera : public Engine::Entity {
};

View File

@@ -2,7 +2,11 @@
#include <J3ML/LinearAlgebra/Vector2.hpp>
#include <vector>
class Entity {
namespace Engine {
class Entity;
}
class Engine::Entity {
protected:
std::vector<Entity*> children{};
Vector2 position = {0, 0};

View File

@@ -1,7 +1,11 @@
#pragma once
#include "Renderable.h"
#include <Engine/Entity/Renderable.h>
class Hud : public Renderable {
namespace Engine {
class Hud;
}
class Engine::Hud : public Engine::Renderable {
public:
Hud() : Renderable({0, 0}, 0) {};
};

View File

@@ -3,7 +3,11 @@
#include <Engine/Entity/Entity.h>
#include <JGL/JGL.h>
class Renderable : public Entity {
namespace Engine {
class Renderable;
}
class Engine::Renderable : public Entity {
public:
virtual void Render() {}
public: