]> git.lizzy.rs Git - dragonblocks3d.git/blob - src/animations.hpp
Set antialiasing to 8
[dragonblocks3d.git] / src / animations.hpp
1 #pragma once
2
3 #include "gl.hpp"
4 #include "mesh.hpp"
5
6 namespace dragonblocks
7 {
8         class FlyInAnimation : public Mesh::IAnimation 
9         {
10                 public:
11                 double last_for;
12                 double offset;
13                 
14                 glm::vec3 getPos(glm::vec3);
15                 
16                 FlyInAnimation(double = 0.4, double = 20.0, void (*)(void *) = nullptr, void * = nullptr);
17         };
18         
19         class GrowAnimation : public Mesh::IAnimation 
20         {
21                 public:
22                 double last_for;
23                 
24                 glm::vec3 getSize(glm::vec3);
25                 
26                 GrowAnimation(double = 0.25, void (*)(void *) = nullptr, void * = nullptr);
27         };
28         
29         class RotateAnimation : public Mesh::IAnimation 
30         {
31                 public:
32                 double speed;
33                 
34                 float getRotationAngle(float);
35                 
36                 RotateAnimation(double = 1.0);
37         };
38