32 lines
635 B
C++
32 lines
635 B
C++
#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<std::unique_ptr<Shape>> 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 update_layout();
|
|
void load_layout();
|
|
};
|