mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-27 23:27:52 -05:00
chore: restructure sound curve loader to load generic 2D graphs instead
This commit is contained in:
25
src/ObjCommon/Parsing/GenericGraph2D.h
Normal file
25
src/ObjCommon/Parsing/GenericGraph2D.h
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user