mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
implemented overlays and text, need depth configuration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user