chore: restructure sound curve loader to load generic 2D graphs instead

This commit is contained in:
Jan
2024-05-20 13:21:58 +02:00
parent fcb73347c2
commit 6f6a70c212
9 changed files with 307 additions and 271 deletions

View File

@ -0,0 +1,25 @@
#pragma once
#include <string>
#include <vector>
class GenericGraph2DKnot
{
public:
double x;
double y;
GenericGraph2DKnot() = default;
GenericGraph2DKnot(const double x, const double y)
: x(x),
y(y)
{
}
};
class GenericGraph2D
{
public:
std::string name;
std::vector<GenericGraph2DKnot> knots;
};