implemented quad

This commit is contained in:
devZoGok
2021-10-18 19:03:11 +03:00
parent 628c3a6d68
commit 0083f9e5b8
29 changed files with 9032 additions and 6 deletions
+26
View File
@@ -0,0 +1,26 @@
#include"node.h"
#include"mesh.h"
namespace vb01{
Node::Node(Vector3 pos){
this->pos=pos;
}
Node::~Node(){}
void Node::update(){
if(mesh)
mesh->update();
for(Node *c : children)
c->update();
}
void Node::attachChild(Node *child){
children.push_back(child);
}
void Node::setObject(Mesh *mesh){
this->mesh=mesh;
mesh->setNode(this);
}
}