wont use customizable noise lol, too niche
This commit is contained in:
parent
1c27658641
commit
c60a0ce031
16 changed files with 3620 additions and 281 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "../gr.h"
|
||||
|
|
@ -11,26 +12,27 @@
|
|||
|
||||
namespace nodes {
|
||||
struct node{
|
||||
public:
|
||||
enginend::theme* theme;
|
||||
virtual void boot()=0;
|
||||
virtual void tick()=0;
|
||||
virtual void draw()=0;
|
||||
virtual void exit()=0;
|
||||
enginend::theme*theme{};
|
||||
|
||||
virtual void boot()=0;
|
||||
virtual void tick()=0;
|
||||
virtual void draw()=0;
|
||||
virtual void exit()=0;
|
||||
virtual ~node()=0;
|
||||
};
|
||||
}
|
||||
struct group : public virtual enginend::nodes::node {
|
||||
std::vector<node*> children;
|
||||
|
||||
explicit group(std::vector<enginend::nodes::node *> nodes):children(nodes){};
|
||||
explicit group(std::vector<enginend::nodes::node *> nodes):children(std::move(nodes)){};
|
||||
|
||||
void boot(){for (node* n: children){n->boot();}}
|
||||
void tick(){for (node* n: children){n->tick();}}
|
||||
void draw(){for (node* n: children){n->draw();}}
|
||||
void exit(){for (node* n: children){n->exit();}}
|
||||
void boot() override {for (node* n: children){n->boot();}}
|
||||
void tick() override {for (node* n: children){n->tick();}}
|
||||
void draw() override {for (node* n: children){n->draw();}}
|
||||
void exit() override {for (node* n: children){n->exit();}}
|
||||
};
|
||||
|
||||
typedef struct theme {
|
||||
struct theme {
|
||||
Color booleanbutton[6],button[3],booleantext[6],buttontext[3],text,buttonborder[3],booleanborder[6],border,background
|
||||
,textfieldbg
|
||||
;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "nodes.h"
|
||||
#include "node2d.h"
|
||||
#include "node3d.h"
|
||||
#include "node2drelative.h"
|
||||
#include <list>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue