18 static double grow_time;
19 static double flyin_time;
20 static double flyin_offset;
21 static double rotate_speed;
31 glm::mat4 getModelMatrix(double, glm::vec3, glm::vec3, glm::vec3, float);
33 Animation() = default;
34 Animation(Type, void (*)(void *) = nullptr, void * = nullptr);
35 Animation(const Animation &) = default;
38 Type type = Type::NONE;
40 void (*on_finish)(void *);
45 int vertices_per_texture;
46 glm::vec3 pos, size, rotation_axis;
47 float rotation_angle = 0;
48 std::vector<Texture> textures;
51 void render(double dtime, ShaderProgram *);
55 Mesh(Scene *, const GLvoid *, GLsizei);
59 GLuint VAO = 0, VBO = 0;
61 GLvoid *vertices = NULL;
62 GLsizeiptr vertices_size;
63 bool configured = false;
64 bool rendering = false;
65 bool prepare_death = false;
66 bool do_delete = false;