fixed layout parser adding stack based recursion, code needs being cleaned up but layout works quite well now, added code draw while resizing

This commit is contained in:
2017-01-22 22:24:48 +00:00
parent 21622fd24c
commit e556cf4c61
7 changed files with 266 additions and 71 deletions

View File

@@ -11,15 +11,19 @@ class App
Shader shader_color;
Shader shader_uv;
Plane plane;
std::vector<std::unique_ptr<Shape>> shapes_list;
Circle circle, circle2, circle3, circle4;
Rounded rounded;
Slice9 slice;
Texture2D tex;
YGNodeRef y_root;
public:
static App I;
int width;
int height;
float width;
float height;
void init();
void create();
void update(float dt);
void resize(float w, float h);
void update_layout();
};