made tons of stuff lol
This commit is contained in:
parent
36f0dae96b
commit
54c3acf092
16 changed files with 450 additions and 94 deletions
|
|
@ -1,9 +1,31 @@
|
|||
#include "nodes.h"
|
||||
#include <list>
|
||||
struct scene{
|
||||
std::list<node> nodes;
|
||||
virtual void init() {}
|
||||
virtual void render() {}
|
||||
virtual void update() {}
|
||||
virtual void close() {}
|
||||
};
|
||||
|
||||
|
||||
namespace enginend {
|
||||
struct scene{
|
||||
std::list<enginend::node*> nodes;
|
||||
virtual void boot() {
|
||||
for (enginend::node* n : nodes) {
|
||||
n->boot();
|
||||
}
|
||||
}
|
||||
virtual void draw() {
|
||||
BeginDrawing();
|
||||
for (enginend::node* n : nodes) {
|
||||
n->draw();
|
||||
}
|
||||
EndDrawing();
|
||||
}
|
||||
virtual void tick() {
|
||||
for (enginend::node* n : nodes) {
|
||||
n->tick();
|
||||
}
|
||||
}
|
||||
virtual void exit() {
|
||||
for (enginend::node* n : nodes) {
|
||||
n->exit();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue