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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user