20 static double grow_time;
21 static double flyin_time;
22 static double flyin_offset;
23 static double rotate_speed;
33 glm::mat4 getModelMatrix(double, glm::vec3, glm::vec3, glm::vec3, float);
35 Animation() = default;
36 Animation(Type, void (*)(void *) = nullptr, void * = nullptr);
37 Animation(const Animation &) = default;
40 Type type = Type::NONE;
42 void (*on_finish)(void *);
47 int vertices_per_texture;
48 glm::vec3 pos, size, rotation_axis;
50 float rotation_angle = 0;
51 std::vector<Texture> textures;
54 void render(double dtime, ShaderProgram *, Frustum *);
58 Mesh(Scene *, const GLvoid *, GLsizei);
62 GLuint VAO = 0, VBO = 0;
64 GLvoid *vertices = NULL;
65 GLsizeiptr vertices_size;
66 bool configured = false;
67 bool rendering = false;
68 bool prepare_death = false;
69 bool do_delete = false;