kopia lustrzana https://github.com/jameshball/osci-render
18 wiersze
463 B
C++
18 wiersze
463 B
C++
#pragma once
|
|
#include "EffectApplication.h"
|
|
#include "../shape/Point.h"
|
|
|
|
class DashedLineEffect : public EffectApplication {
|
|
public:
|
|
DashedLineEffect();
|
|
~DashedLineEffect();
|
|
|
|
Point apply(int index, Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
|
|
|
private:
|
|
const static int MAX_BUFFER = 192000;
|
|
std::vector<Point> buffer = std::vector<Point>(MAX_BUFFER);
|
|
int dashIndex = 0;
|
|
int bufferIndex = 0;
|
|
};
|