Fixed all issues clangd was able to find with MMAlgos.

This commit is contained in:
Relintai 2022-06-06 18:13:29 +02:00
parent 80439d8cb7
commit 2c3d7cecff
2 changed files with 300 additions and 318 deletions

File diff suppressed because it is too large Load Diff

View File

@ -153,21 +153,21 @@ public:
static Color voronoi_3(const Vector2 &uv, const Vector2 &size, const Vector2 &stretch, const float intensity, const float randomness, const int pseed); static Color voronoi_3(const Vector2 &uv, const Vector2 &size, const Vector2 &stretch, const float intensity, const float randomness, const int pseed);
enum CombinerAxisType { enum CombinerAxisType {
SINE = 0, COMBINER_AXIS_TYPE_SINE = 0,
TRIANGLE, COMBINER_AXIS_TYPE_TRIANGLE,
SQUARE, COMBINER_AXIS_TYPE_SQUARE,
SAWTOOTH, COMBINER_AXIS_TYPE_SAWTOOTH,
CONSTANT, COMBINER_AXIS_TYPE_CONSTANT,
BOUNCE COMBINER_AXIS_TYPE_BOUNCE
}; };
enum CombinerType { enum CombinerType {
MULTIPLY = 0, COMBINER_TYPE_MULTIPLY = 0,
ADD, COMBINER_TYPE_ADD,
MAX, COMBINER_TYPE_MAX,
MIN, COMBINER_TYPE_MIN,
XOR, COMBINER_TYPE_XOR,
POW COMBINER_TYPE_POW
}; };
static float pattern(const Vector2 &uv, const float x_scale, const float y_scale, const int ct, const int catx, const int caty); static float pattern(const Vector2 &uv, const float x_scale, const float y_scale, const int ct, const int catx, const int caty);