fixing git repo

This commit is contained in:
kin fuyuki 2025-12-20 23:05:50 -03:00
commit 52b5a8ee95
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
19 changed files with 106 additions and 10712 deletions

0
engine/src/aud.h Normal file
View file

4
engine/src/engine.h Normal file
View file

@ -0,0 +1,4 @@
#include "net.h"
#include "gr.h"
#include "aud.h"
#include "program.h"

2
engine/src/gr.h Normal file
View file

@ -0,0 +1,2 @@
#include <raylib.h>
#include "graph/window.h"

View file

0
engine/src/net.h Normal file
View file

View 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
View 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() {}
};

View 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() {}
};