implemented overlays and text, need depth configuration

This commit is contained in:
devZoGok
2021-10-18 19:05:04 +03:00
parent d1f2f9b152
commit 7a8a178a74
26 changed files with 544 additions and 73 deletions
+8
View File
@@ -3,6 +3,7 @@
#include"mesh.h"
#include"particleEmitter.h"
#include"light.h"
#include"text.h"
#include"material.h"
using namespace std;
@@ -21,6 +22,8 @@ namespace vb01{
l->update();
for(ParticleEmitter *p : emitters)
p->update();
for(Text *t : texts)
t->update();
for(Node *c : children)
c->update();
}
@@ -64,4 +67,9 @@ namespace vb01{
}
}
}
void Node::addText(Text *text){
texts.push_back(text);
text->setNode(this);
}
}