mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
implemented quad
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user