Basic Entity Components implementation
This commit is contained in:
24
BarinkEngine/src/Scene/TransformTree/Node.h
Normal file
24
BarinkEngine/src/Scene/TransformTree/Node.h
Normal file
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "../../Graphics/Transform.h"
|
||||
|
||||
class Node {
|
||||
public:
|
||||
Node(const std::string& name);
|
||||
std::string name;
|
||||
Node* parent;
|
||||
std::vector<Node*> children;
|
||||
|
||||
void addChild(Node& node);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
class Group : public Node {
|
||||
public:
|
||||
Group(const std::string& name);
|
||||
Transform& transform;
|
||||
|
||||
};
|
Reference in New Issue
Block a user