#pragma once #include "shader.hpp" #include "shape.hpp" #include "texture.hpp" #include "layout.h" class App { Sampler sampler; Shader shader; Shader shader_color; Shader shader_uv; Plane plane; Texture2D tex; Node layout; 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); };