mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-10 21:09:38 +01:00
Initial cleanups to the new files.
This commit is contained in:
parent
6a58bbca29
commit
80439d8cb7
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,12 @@
|
|||||||
#ifndef MM_ALGOS_H
|
#ifndef MM_ALGOS_H
|
||||||
#define 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"
|
#include "core/reference.h"
|
||||||
|
|
||||||
class MMAlgos : public Reference {
|
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_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_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);
|
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,
|
TRIANGLE,
|
||||||
SQUARE,
|
SQUARE,
|
||||||
SAWTOOTH,
|
SAWTOOTH,
|
||||||
@ -156,8 +162,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum CombinerType {
|
enum CombinerType {
|
||||||
|
MULTIPLY = 0,
|
||||||
MULTIPLY,
|
|
||||||
ADD,
|
ADD,
|
||||||
MAX,
|
MAX,
|
||||||
MIN,
|
MIN,
|
||||||
|
@ -1023,7 +1023,7 @@ _MMAlgos::~_MMAlgos() {
|
|||||||
self = nullptr;
|
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("clampv3", "v", "mi", "ma"), &_MMAlgos::clampv3);
|
||||||
ClassDB::bind_method(D_METHOD("floorc", "a"), &_MMAlgos::floorc);
|
ClassDB::bind_method(D_METHOD("floorc", "a"), &_MMAlgos::floorc);
|
||||||
ClassDB::bind_method(D_METHOD("floorv2", "a"), &_MMAlgos::floorv2);
|
ClassDB::bind_method(D_METHOD("floorv2", "a"), &_MMAlgos::floorv2);
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
#ifndef MM_ALGOS_BIND_H
|
#ifndef MM_ALGOS_BIND_H
|
||||||
#define 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"
|
#include "core/object.h"
|
||||||
|
|
||||||
class _MMAlgos : public Object {
|
class _MMAlgos : public Object {
|
||||||
@ -262,8 +268,8 @@ public:
|
|||||||
|
|
||||||
static _MMAlgos *get_singleton();
|
static _MMAlgos *get_singleton();
|
||||||
|
|
||||||
MMAlgos();
|
_MMAlgos();
|
||||||
~MMAlgos();
|
~_MMAlgos();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
Loading…
Reference in New Issue
Block a user