2023-07-21 16:42:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
2024-01-07 16:17:20 +00:00
|
|
|
#include "../shape/Point.h"
|
2023-07-21 16:42:29 +00:00
|
|
|
#include "../audio/Effect.h"
|
2024-02-11 22:06:35 +00:00
|
|
|
#include "../obj/Camera.h"
|
2023-07-21 16:42:29 +00:00
|
|
|
|
|
|
|
class PerspectiveEffect : public EffectApplication {
|
|
|
|
public:
|
2024-02-12 20:34:00 +00:00
|
|
|
PerspectiveEffect();
|
2023-12-20 23:30:20 +00:00
|
|
|
~PerspectiveEffect();
|
2023-07-21 16:42:29 +00:00
|
|
|
|
2024-08-26 17:09:29 +00:00
|
|
|
Point apply(int index, Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
2023-10-19 11:20:24 +00:00
|
|
|
|
2023-07-21 16:42:29 +00:00
|
|
|
private:
|
2024-02-11 22:06:35 +00:00
|
|
|
|
|
|
|
Camera camera;
|
2023-09-01 18:52:36 +00:00
|
|
|
};
|