#pragma once #include "shader.h" #include "shape.h" #include "texture.h" #include "layout.h" class App { Sampler sampler; Texture2D tex; LayoutManager layout; stbtt_fontinfo font; Texture2D font_tex; std::vector chars; Plane plane; 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); };