X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=mode%2FanimationMode.hpp;fp=mode%2FanimationMode.hpp;h=83ac5e5979c7f51271f81fa0c81bbd12be072ccc;hb=ad1184d3e6a82eae4ed0bb86b0e737329c580eff;hp=0000000000000000000000000000000000000000;hpb=9b76ae474d43ab495b68bb88a9cb517864496f82;p=opengl.git diff --git a/mode/animationMode.hpp b/mode/animationMode.hpp new file mode 100644 index 0000000..83ac5e5 --- /dev/null +++ b/mode/animationMode.hpp @@ -0,0 +1,17 @@ +#include "../mode.hpp" +#include "../model.hpp" +#include +struct AnimationMode : public Mode { + Model *sceneModel; + + bool discoLights = false; + std::vector lights; + + AnimationMode(std::string modelPath); + + void display(float d) override; + void timer() override; + void motion(int x, int y, int dx, int dy) override; + void passiveMotion(int x, int y, int dx, int dy) override; + void mouse(int button, int state, int x, int y) override; +};