symlinking library headers for better portability
This commit is contained in:
parent
d04b700809
commit
55b9b9d4fa
28 changed files with 645 additions and 0 deletions
40
engine/src/scenes/nodes.h
Normal file
40
engine/src/scenes/nodes.h
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#pragma once
|
||||
#include <vector>
|
||||
|
||||
#include "../gr.h"
|
||||
#include "../aud.h"
|
||||
#include "../net.h"
|
||||
#include<tiny/term.h>
|
||||
|
||||
namespace enginend {
|
||||
namespace nodes {
|
||||
struct node{
|
||||
public:
|
||||
virtual void boot()=0;
|
||||
virtual void tick()=0;
|
||||
virtual void draw()=0;
|
||||
virtual void exit()=0;
|
||||
};
|
||||
}
|
||||
struct group : public virtual enginend::nodes::node {
|
||||
std::vector<node*> children;
|
||||
|
||||
explicit group(std::vector<enginend::nodes::node *> nodes):children(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();}}
|
||||
};
|
||||
|
||||
struct theme {
|
||||
// in case if its a boolean button, it will use booleanbutton
|
||||
Color booleanbutton[3],button[3],booleantext[3],buttontext[3],text,buttonborder[3],booleanborder[3],border;
|
||||
|
||||
Font font;
|
||||
|
||||
Image slider,handle, checkbox,checkboxchecked;
|
||||
|
||||
Color tint;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue