#pragma once #include "shader.hpp" #include "shape.hpp" #include "texture.hpp" class App { Sampler sampler; Shader shader; Shader shader_color; Shader shader_uv; Plane plane; std::vector> shapes_list; Circle circle, circle2, circle3, circle4; Rounded rounded; Slice9 slice; Texture2D tex; YGNodeRef y_root { nullptr }; struct stat g_file_info { 0 }; public: static App I; float width; float height; void init(); void create(); void update(float dt); void resize(float w, float h); void mouse_down(int button, float x, float y); void mouse_move(float x, float y); void mouse_up(int button, float x, float y); void update_layout(); void load_layout(); };