fixing git repo
This commit is contained in:
parent
20cb5a12f8
commit
52b5a8ee95
19 changed files with 106 additions and 10712 deletions
0
engine/src/aud.h
Normal file
0
engine/src/aud.h
Normal file
4
engine/src/engine.h
Normal file
4
engine/src/engine.h
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include "net.h"
|
||||
#include "gr.h"
|
||||
#include "aud.h"
|
||||
#include "program.h"
|
||||
2
engine/src/gr.h
Normal file
2
engine/src/gr.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#include <raylib.h>
|
||||
#include "graph/window.h"
|
||||
0
engine/src/graph/window.h
Normal file
0
engine/src/graph/window.h
Normal file
0
engine/src/net.h
Normal file
0
engine/src/net.h
Normal file
44
engine/src/scenes/node2d.h
Normal file
44
engine/src/scenes/node2d.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#include "nodes.h"
|
||||
|
||||
struct node2d :public node {
|
||||
vec2 pos;
|
||||
node2d(){}
|
||||
node2d(float x,float y):pos(x,y){}
|
||||
};
|
||||
struct rect :virtual public node2d{
|
||||
vec2 size;
|
||||
rect(){}
|
||||
rect(float x,float y,float w, float h):size(w,h){
|
||||
this->pos=vec2(x,y);
|
||||
}
|
||||
};
|
||||
struct textured :virtual public rect{
|
||||
int ID;
|
||||
textured(){}
|
||||
textured(int id,float x,float y,float w, float h):ID(id){
|
||||
this->pos=vec2(x,y);this->size=vec2(w,h);
|
||||
}
|
||||
};
|
||||
struct colored :virtual public rect{
|
||||
col c;
|
||||
colored(){}
|
||||
colored(col color,float x,float y,float w, float h):c(color){
|
||||
this->pos=vec2(x,y);this->size=vec2(w,h);
|
||||
}
|
||||
};
|
||||
struct tinted :virtual public colored, virtual public textured{
|
||||
tinted(){}
|
||||
|
||||
tinted(int id,col color,float x,float y,float w, float h):
|
||||
node2d(x, y),
|
||||
rect(x, y, w, h),
|
||||
colored(color, x, y, w, h),
|
||||
textured(id, x, y, w, h)
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
struct text :virtual tinted {
|
||||
Font font;
|
||||
std::string text;
|
||||
};
|
||||
11
engine/src/scenes/nodes.h
Normal file
11
engine/src/scenes/nodes.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "../gr.h"
|
||||
#include "../aud.h"
|
||||
#include "../net.h"
|
||||
struct node{
|
||||
public:
|
||||
|
||||
virtual void init() {}
|
||||
virtual void render() {}
|
||||
virtual void update() {}
|
||||
virtual void close() {}
|
||||
};
|
||||
9
engine/src/scenes/scene.h
Normal file
9
engine/src/scenes/scene.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "nodes.h"
|
||||
#include <list>
|
||||
struct scene{
|
||||
std::list<node> nodes;
|
||||
virtual void init() {}
|
||||
virtual void render() {}
|
||||
virtual void update() {}
|
||||
virtual void close() {}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue