Initial cleanups to the new files.

This commit is contained in:
Relintai 2022-06-06 15:48:52 +02:00
parent 6a58bbca29
commit 80439d8cb7
4 changed files with 5333 additions and 17151 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,12 @@
#ifndef MM_ALGOS_H
#define MM_ALGOS_H
#include "core/color.h"
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "core/pool_vector.h"
#include "core/variant.h"
#include "core/reference.h"
class MMAlgos : public Reference {
@ -145,9 +151,9 @@ public:
static Color voronoi_1(const Vector2 &uv, const Vector2 &size, const Vector2 &stretch, const float intensity, const float randomness, const int pseed);
static Color voronoi_2(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 {
SINE,
enum CombinerAxisType {
SINE = 0,
TRIANGLE,
SQUARE,
SAWTOOTH,
@ -156,8 +162,7 @@ public:
};
enum CombinerType {
MULTIPLY,
MULTIPLY = 0,
ADD,
MAX,
MIN,

View File

@ -1023,7 +1023,7 @@ _MMAlgos::~_MMAlgos() {
self = nullptr;
}
static void _MMAlgos::_bind_methods() {
void _MMAlgos::_bind_methods() {
ClassDB::bind_method(D_METHOD("clampv3", "v", "mi", "ma"), &_MMAlgos::clampv3);
ClassDB::bind_method(D_METHOD("floorc", "a"), &_MMAlgos::floorc);
ClassDB::bind_method(D_METHOD("floorv2", "a"), &_MMAlgos::floorv2);

View File

@ -1,6 +1,12 @@
#ifndef MM_ALGOS_BIND_H
#define MM_ALGOS_BIND_H
#include "core/color.h"
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "core/pool_vector.h"
#include "core/variant.h"
#include "core/object.h"
class _MMAlgos : public Object {
@ -262,8 +268,8 @@ public:
static _MMAlgos *get_singleton();
MMAlgos();
~MMAlgos();
_MMAlgos();
~_MMAlgos();
protected:
static void _bind_methods();